wasm-opt-rs icon indicating copy to clipboard operation
wasm-opt-rs copied to clipboard

Adjust shim patterns for incorrect const-correctness

Open brson opened this issue 3 years ago • 1 comments

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.

brson avatar Oct 17 '22 22:10 brson

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.

brson avatar Nov 11 '22 20:11 brson