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

#572 in WebAssembly

Download history 40104/week @ 2024-12-16 14189/week @ 2024-12-23 21356/week @ 2024-12-30 40414/week @ 2025-01-06 58519/week @ 2025-01-13 49525/week @ 2025-01-20 42798/week @ 2025-01-27 51348/week @ 2025-02-03 55954/week @ 2025-02-10 52324/week @ 2025-02-17 47443/week @ 2025-02-24 48856/week @ 2025-03-03 52437/week @ 2025-03-10 47017/week @ 2025-03-17 53713/week @ 2025-03-24 42035/week @ 2025-03-31

197,101 downloads per month
Used in 128 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

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.


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++.

Dependencies