rustwasm / walrus

Walrus is a WebAssembly transformation library 🌊🐘
https://docs.rs/walrus
Apache License 2.0
405 stars 62 forks source link

fix: disable multi-memory when config.only_stable_features is true #269

Closed lwshang closed 4 months ago

lwshang commented 4 months ago

WebAssemly features/proposals

This PR overhauls how config.only_stable_features is translated to wasmparser::WasmFeatures.

Now, when only_stable_features == true, only stable features (finished proposals) will be enabled.

In default mode (only_stable_features == false), all supported features will be enabled. Currently, only multi-memory feature is fully supported. thread feature needs to be enabled because of a round_trip test.

The skipped tests in non-proposals spec-tests are all removed. Therefore, walrus with only_stable_features == true conforms the current WebAssembly standard.

Other

Also upgrades dependencies in fuzz-utils crate.