brson / wasm-opt-rs

Rust bindings for Binaryen's wasm-opt
Apache License 2.0
61 stars 10 forks source link

Make feature selection work like binaryen #126

Closed brson closed 1 year ago

brson commented 1 year ago

Feature selection basically didn't work previously: either you got the MVP features, all features, or the default features + custom enabled and disabled features; and enabling / disabling did not work the same way as wasm-opt. Now you get a baseline set of features, either default, mvp, or all, and stack enables/disables on top of that, and enabling disabling changes the enabled/disabled set the same way binaryen does.

Fixes https://github.com/brson/wasm-opt-rs/issues/123

brson commented 1 year ago

Also fixes https://github.com/brson/wasm-opt-rs/issues/121