Open aschmahmann opened 2 years ago
Build step for stripping compiled wasm modules
If you're referring to removing dead code, I might suggest using the wasm-snip
crate. We've had success using it in the Polywrap toolchain's default Rust build image:
https://github.com/polywrap/monorepo/blob/4eac9010f4b3cb7cd041854a737bd84e176d816c/packages/cli/src/lib/defaults/build-images/wasm/rust/Dockerfile.mustache#L101