wasm-opt-rs
wasm-opt-rs copied to clipboard
Adjust shim patterns for incorrect const-correctness
In https://github.com/brson/wasm-opt-rs/issues/95 dtolnay provides a better shim pattern for dealing with non-const-correct APIs.
It is a breaking change and needs to wait for a major version bump.
I am undecided yet about whether to actually do this, as the pattern we have now is fine for our purposes, and the suggested pattern requires using C++ free functions instead of methods.