-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
executable file
·28 lines (23 loc) · 859 Bytes
/
Cargo.toml
File metadata and controls
executable file
·28 lines (23 loc) · 859 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
[package]
name = "brotli-js"
version = "0.0.1"
authors = ["yisibl <[email protected]>"]
license = "MIT"
edition = "2018"
[lib]
crate-type = ["cdylib"]
[dependencies]
napi = { version = "2.0.0-alpha.0", features = ["serde-json"] }
napi-derive = { version = "2.0.0-alpha.0" }
serde = { version = "1", features = ["derive"] }
brotli = { version = "3.3", features = ["simd"], git = "https://github.com/billyb2/rust-brotli.git", branch = "master" }
# [target.'cfg(all(target_arch = "x86_64", not(target_env = "musl")))'.dependencies]
# mimalloc-rust = "0.1"
[build-dependencies]
napi-build = "1"
[profile.release]
lto = true # Enable Link Time Optimization
opt-level = 3
# Setting this to 1 may improve the performance of generated code, but may be slower to compile.
# https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
codegen-units = 1