Skip to content

Commit d3cda41

Browse files
committed
Provide wasm-opt flags to fix build for rust >= 1.87
1 parent 561538c commit d3cda41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/ct_worker/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ release = false
1818
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
1919
dwarf-debug-info = true
2020

21+
# https://github.com/cloudflare/workers-rs/issues/818
22+
[package.metadata.wasm-pack.profile.release]
23+
wasm-opt = ["--enable-nontrapping-float-to-int", "--enable-bulk-memory"]
24+
2125
[lib]
2226
crate-type = ["cdylib"]
2327

0 commit comments

Comments
 (0)