Skip to content

Commit

Permalink
js: enable unstable-options to reduce WASM size
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 21, 2024
1 parent 48a8114 commit d88b646
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ license = "MIT"
rust-version = "1.64.0" # TODO: check MSRV

[workspace.dependencies]
js-sys = "0.3"
js-sys = { version = "0.3", default-features = false }
wasm-bindgen = { version = "0.2", default-features = false }
wasm-bindgen-futures = "0.4"
wasm-bindgen-futures = { version = "0.4", default-features = false }

[profile.release]
lto = true
Expand Down
7 changes: 6 additions & 1 deletion webln-js/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ lto = true
codegen-units = 1
panic = "abort"
strip = true
debug = false
debug = false

[unstable]
unstable-options = true
build-std = ["panic_abort", "std"]
build-std-features = ["panic_immediate_abort"]

0 comments on commit d88b646

Please sign in to comment.