Skip to content

Commit 4819e26

Browse files
committed
Update wasm example
Removed wasm-pack config now that issue is fixed: drager/wasm-pack#886
1 parent af2adf4 commit 4819e26

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ensure_wasm/Cargo.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ crate-type = ["cdylib", "rlib"]
1313
default = ["console_error_panic_hook", "wee_alloc"]
1414

1515
[dependencies]
16-
wasm-bindgen = "=0.2.68"
16+
wasm-bindgen = "0.2.73"
1717

1818
# The `console_error_panic_hook` crate provides better debugging of panics by
1919
# logging them with `console.error`. This is great for development, but requires
2020
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
2121
# code size when deploying.
22-
console_error_panic_hook = { version = "0.1.1", optional = true }
22+
console_error_panic_hook = { version = "0.1", optional = true }
2323

2424
# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
2525
# compared to the default allocator's ~10K. It is slower than the default
2626
# allocator, however.
2727
#
2828
# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
29-
wee_alloc = { version = "0.4.2", optional = true }
29+
wee_alloc = { version = "0.4", optional = true }
3030

3131
deku = { path = "../" }
3232
hex = "0.4"
@@ -37,7 +37,3 @@ wasm-bindgen-test = "0.3"
3737
[profile.release]
3838
# Tell `rustc` to optimize for small code size.
3939
opt-level = "s"
40-
41-
# https://github.com/rustwasm/wasm-pack/issues/886#issuecomment-667669802
42-
[package.metadata.wasm-pack.profile.release]
43-
wasm-opt = ["-Oz", "--enable-mutable-globals"]

0 commit comments

Comments
 (0)