-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
34 lines (27 loc) · 928 Bytes
/
Cargo.toml
File metadata and controls
34 lines (27 loc) · 928 Bytes
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
[package]
authors = ["LongYinan <lynweklm@gmail.com>"]
edition = "2024"
name = "napi-tar"
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 = "1"
bzip2 = "0.6"
flate2 = "1"
infer = "0.19"
lzma-rs = { version = "0.3", features = ["stream"] }
napi = { version = "3", features = ["anyhow", "napi6"] }
napi-derive = "3"
tar = "0.4"
[target.'cfg(all(not(target_os = "linux"), not(target_os = "freebsd"), not(target_arch = "x86"), not(target_family = "wasm")))'.dependencies]
mimalloc-safe = "0.1"
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
mimalloc-safe = { version = "0.1", features = ["local_dynamic_tls"] }
[build-dependencies]
napi-build = "2"
[profile.release]
codegen-units = 1
lto = true
strip = "symbols"