We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f263bc4 commit 24e0783Copy full SHA for 24e0783
1 file changed
wasm-edge/Cargo.toml
@@ -26,3 +26,14 @@ features = [
26
# the JS globalThis.crypto backend (pulled transitively via rand in core-engine).
27
[target.'cfg(target_arch = "wasm32")'.dependencies]
28
getrandom = { version = "0.3", features = ["wasm_js"] }
29
+
30
+# Recent Rust toolchains emit newer wasm features (bulk-memory, nontrapping
31
+# float-to-int, …) that the older `wasm-opt` wasm-pack downloads rejects during
32
+# validation. Disabling wasm-opt avoids the version mismatch entirely; the
33
+# release build is already optimized by rustc's release profile, so the size
34
+# difference is small. Re-enable with an up-to-date wasm-opt if desired.
35
+[package.metadata.wasm-pack.profile.release]
36
+wasm-opt = false
37
38
+[package.metadata.wasm-pack.profile.profiling]
39
0 commit comments