Hello, thanks for this crate, this is kinda useful actually for my project when I use some enum variants types on the Rust side.
However, I don't know why, but when I use the crate on my project, wasm-pack compilation is failing on the wasm-opt passes.
here is the full logs:
Finished `release` profile [optimized] target(s) in 6.62s
[INFO]: found wasm-opt at "/nix/store/8anixczmmyidb088rd4s2znghq3cl7fy-binaryen-123/bin/wasm-opt"
[INFO]: Optimizing wasm binaries with `wasm-opt`...
[wasm-validator error in function 194] unexpected false: all used features should be allowed, on
(i64.trunc_sat_f64_s
(local.get $5)
)
[wasm-validator error in function 1450] unexpected false: all used features should be allowed, on
(i32.trunc_sat_f64_u
(local.get $6)
)
[wasm-validator error in function 1451] unexpected false: all used features should be allowed, on
(i32.trunc_sat_f64_u
(local.get $6)
)
[wasm-validator error in function 4646] unexpected false: all used features should be allowed, on
(i64.trunc_sat_f64_s
(call $fimport$21
(i32.load
(local.get $1)
)
)
)
Fatal: error validating input
Error: failed to execute `wasm-opt`: exited with exit status: 1
full command: "/nix/store/8anixczmmyidb088rd4s2znghq3cl7fy-binaryen-123/bin/wasm-opt" "/home/snow/Dev/Allfeat/allfeat-sdk/wasm/pkg/allfeat_wasm_bg.wasm" "-o" "/home/snow/Dev/Allfeat/allfeat-sdk/wasm/pkg/allfeat_wasm_bg.wasm-opt.wasm" "--enable-bulk-memory"
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
Caused by: failed to execute `wasm-opt`: exited with exit status: 1
full command: "/nix/store/8anixczmmyidb088rd4s2znghq3cl7fy-binaryen-123/bin/wasm-opt" "/home/snow/Dev/Allfeat/allfeat-sdk/wasm/pkg/allfeat_wasm_bg.wasm" "-o" "/home/snow/Dev/Allfeat/allfeat-sdk/wasm/pkg/allfeat_wasm_bg.wasm-opt.wasm" "--enable-bulk-memory"
To disable `wasm-opt`, add `wasm-opt = false` to your package metadata in your `Cargo.toml`.
error: Recipe `build-wasm` failed on line 2 with exit code 1
Is this something known ? Maybe the crate is using some outdated or incompatible WASM stuff with wasm-opt ?
Hello, thanks for this crate, this is kinda useful actually for my project when I use some enum variants types on the Rust side.
However, I don't know why, but when I use the crate on my project, wasm-pack compilation is failing on the wasm-opt passes.
here is the full logs:
Is this something known ? Maybe the crate is using some outdated or incompatible WASM stuff with wasm-opt ?