gear
gear copied to clipboard
wasm-builder uses hacks to build WASMs
Problem
Starting with Rust 1.82 WASMs contain multi-value and reference-types features: https://blog.rust-lang.org/2024/09/24/webassembly-targets-change-in-default-target-features.html.
We currently use hack #4247 to solve this issue. This hack results in end user having to install rust-src component, -Zbuild-std increases build time, removing -Clinker-plugin-lto increases binary sizes, and RUSTC_BOOTSTRAP=1 reduces stability since the user may be using nightly features in WASMs.
Steps
No response
Possible Solution
- Update wasmi executor
- TODO: update
sandbox-wasmito>=0.24
- TODO: update
- Support
multi-valueandreference-typesparsing in ourparity-wasmfork- https://github.com/gear-tech/parity-wasm/pull/4
- TODO:
reference-types
- Support
multi-valueandreference-typesinparity-wasm-instrument- https://github.com/gear-tech/wasm-instrument/pull/8
- TODO:
reference-types
- Benchmarks of new instructions, possibly charging gas for tables, etc.
Notes
No response
Relevant Log Output
No response