mirror of
https://github.com/G2-Games/cross-usb.git
synced 2025-04-19 13:22:53 -05:00
Added release profile options to decrease size of compiled library
This commit is contained in:
parent
2d732695e8
commit
2cbda03deb
1 changed files with 11 additions and 8 deletions
19
Cargo.toml
19
Cargo.toml
|
@ -18,6 +18,12 @@ edition = "2021"
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib", "rlib"]
|
crate-type = ["cdylib", "rlib"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
thiserror = "1.0.56"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
tokio-test = "0.4.3"
|
||||||
|
|
||||||
# Wasm deps
|
# Wasm deps
|
||||||
[target.'cfg(target_family = "wasm")'.dependencies]
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
||||||
wasm-bindgen = "0.2.84"
|
wasm-bindgen = "0.2.84"
|
||||||
|
@ -42,16 +48,13 @@ features = [
|
||||||
|
|
||||||
# Non-wasm deps
|
# Non-wasm deps
|
||||||
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
||||||
nusb = "0.1.5"
|
nusb = "0.1.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
tokio-test = "0.4.3"
|
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = "s"
|
lto = true
|
||||||
|
strip = true
|
||||||
[dependencies]
|
opt-level = "z"
|
||||||
thiserror = "1.0.56"
|
codegen-units = 1
|
||||||
|
|
||||||
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
|
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
|
||||||
dwarf-debug-info = true
|
dwarf-debug-info = true
|
||||||
|
|
Loading…
Reference in a new issue