forked from web-infra-dev/rspack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
69 lines (60 loc) · 2.16 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
edition = "2021"
license = "MIT"
name = "rspack_node"
publish = false
repository = "https://github.com/web-infra-dev/rspack"
version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib"]
[dependencies]
anyhow = { version = "1.0.65", features = ["backtrace"] }
async-trait = "0.1.53"
backtrace = "0.3"
dashmap = "5.0.0"
futures = "0.3"
napi = { version = "=2.11.1" }
napi-derive = { version = "=2.11.0" }
napi-sys = { version = "=2.2.3" }
once_cell = "1"
regex = "1.6.0"
rspack = { path = "../rspack" }
rspack_binding_macros = { path = "../rspack_binding_macros" }
rspack_binding_options = { path = "../rspack_binding_options", default-features = false, features = [
"node-api",
] }
rspack_core = { path = "../rspack_core" }
rspack_error = { path = "../rspack_error" }
rspack_fs = { path = "../rspack_fs", features = ["async"] }
rspack_fs_node = { path = "../rspack_fs_node" }
rspack_identifier = { path = "../rspack_identifier" }
rspack_napi_shared = { path = "../rspack_napi_shared" }
rspack_plugin_html = { path = "../rspack_plugin_html" }
rspack_tracing = { path = "../rspack_tracing" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1.21.0", features = [
"rt",
"rt-multi-thread",
"macros",
"test-util",
"parking_lot",
] }
tracing = "0.1.34"
[target.'cfg(not(target_os = "linux"))'.dependencies]
mimalloc-rust = { version = "0.2" }
[target.'cfg(all(target_os = "linux", not(all(target_env = "musl", target_arch = "aarch64"))))'.dependencies]
mimalloc-rust = { version = "0.2", features = ["local-dynamic-tls"] }
[build-dependencies]
napi-build = { version = "=2.0.1" }
[dev-dependencies]
testing_macros = { version = "0.2.5" }
[profile.release]
# debug = true
# Automatically strip symbols from the binary.
# lto = true # disabled by now, because it will significantly increase our compile time.
[patch.crates-io]
# Use bucket instead of global mutex for dynamic set
# See: https://github.com/servo/string-cache/pull/268
string_cache = { git = "https://github.com/boshen/string-cache", rev = "33e00b3d9a60322251532a202390c6bc53b7ea45" }