#webasm #wasm

app wasm-gc

A CLI tool to garbage collect webassembly modules

3 releases

Uses old Rust 2015

0.1.6 Jun 1, 2018
0.1.1 Feb 27, 2018
0.1.0 Feb 6, 2018

#32 in #webasm

Download history 35/week @ 2023-11-14 65/week @ 2023-11-21 53/week @ 2023-11-28 79/week @ 2023-12-05 128/week @ 2023-12-12 53/week @ 2023-12-19 32/week @ 2023-12-26 99/week @ 2024-01-02 43/week @ 2024-01-09 43/week @ 2024-01-16 44/week @ 2024-01-23 34/week @ 2024-01-30 49/week @ 2024-02-06 70/week @ 2024-02-13 109/week @ 2024-02-20 114/week @ 2024-02-27

349 downloads per month

MIT/Apache

45KB
998 lines

wasm-gc

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

License

This project is licensed under either of

at your option.

Contribution

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

Dependencies

~0.9–1.2MB
~23K SLoC