#webasm

wasm-gc-api

A library to garbage collect webassembly modules

12 releases

Uses old Rust 2015

0.1.11 Aug 28, 2018
0.1.10 Aug 3, 2018
0.1.9 Jul 25, 2018
0.1.6 Jun 1, 2018
0.1.1 Feb 27, 2018

#253 in Development tools

Download history 3507/week @ 2020-10-31 3247/week @ 2020-11-07 3676/week @ 2020-11-14 4167/week @ 2020-11-21 4930/week @ 2020-11-28 4233/week @ 2020-12-05 4438/week @ 2020-12-12 2804/week @ 2020-12-19 2523/week @ 2020-12-26 5447/week @ 2021-01-02 5293/week @ 2021-01-09 5528/week @ 2021-01-16 5553/week @ 2021-01-23 5465/week @ 2021-01-30 5233/week @ 2021-02-06 5335/week @ 2021-02-13

15,870 downloads per month
Used in 4 crates (3 directly)

MIT/Apache

36KB
933 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

~560KB
~13K SLoC