๐Ÿ“ฆ toeverything / file-type

๐Ÿ“„ Cargo.toml ยท 36 lines
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[package]
authors = ["LongYinan <lynweklm@gmail.com>"]
edition = "2021"
name = "napi-file-type"
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]
napi = "2"
napi-derive = "2"
file-format = { version = "0.24", features = ["reader"] }

[target.'cfg(not(any(target_os = "linux", target_family = "wasm")))'.dependencies]
mimalloc = "0.1"

[target.'cfg(target_os = "linux")'.dependencies]
mimalloc = { version = "0.1", features = ["local_dynamic_tls"] }

[build-dependencies]
napi-build = "2"

[profile.release]
lto = true
codegen-units = 1

[profile.wasi]
inherits = "release"
debug = 'full'
opt-level = 'z'
overflow-checks = false
panic = 'abort'