13 releases (6 breaking)

0.116.0 Oct 19, 2023
0.114.1 Aug 14, 2023
0.114.0 Jul 31, 2023
0.112.0 Mar 9, 2023
0.110.2 Oct 27, 2022

#432 in WebAssembly

Download history 44708/week @ 2024-07-21 41370/week @ 2024-07-28 45557/week @ 2024-08-04 55406/week @ 2024-08-11 41011/week @ 2024-08-18 50462/week @ 2024-08-25 55995/week @ 2024-09-01 51664/week @ 2024-09-08 46806/week @ 2024-09-15 52272/week @ 2024-09-22 53168/week @ 2024-09-29 53105/week @ 2024-10-06 49731/week @ 2024-10-13 57157/week @ 2024-10-20 46320/week @ 2024-10-27 55937/week @ 2024-11-03

211,767 downloads per month
Used in 113 crates (via wasm-opt)

MIT/Apache

5.5MB
124K SLoC

C++ 102K SLoC // 0.2% comments Bitbake 11K SLoC // 0.0% comments JavaScript 5K SLoC // 0.0% comments Python 4K SLoC // 0.2% comments WebAssembly 1K SLoC // 0.0% comments Rust 480 SLoC // 0.0% comments C 143 SLoC // 0.1% comments Shell 62 SLoC // 0.1% comments

Rust bindings for Binaryen's wasm-opt

wasm-opt is a component of the Binaryen toolkit that optimizes WebAssembly modules. It is written in C++.


lib.rs:

Direct bindings to wasm-opt.

These are bindings to wasm-opt, as built by the wasm-opt-sys crate. The bindings are created by the cxx crate, and all go through a custom C++ shim layer that provides a cxx-compatible C++ API.

Most users will not want to use this crate directly, but instead the wasm-opt crate.

The version of cxx used by these bindings is reexported here.

Dependencies