wasm-gc-api 0.1.11

A library to garbage collect webassembly modules


A small command to gc a wasm module and remove all unneeded exports, imports, functions, etc. This is effectively --gc-sections for wasm.


This project is licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

WSL (Windows Subsystem for Linux)

Install gcc:

sudo apt update && sudo apt install gcc -y

and then install the crate:

cargo install wasm-gc