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

#571 in WebAssembly

Download history 52417/week @ 2024-10-30 52108/week @ 2024-11-06 47993/week @ 2024-11-13 47568/week @ 2024-11-20 46290/week @ 2024-11-27 47600/week @ 2024-12-04 43213/week @ 2024-12-11 33205/week @ 2024-12-18 14029/week @ 2024-12-25 31359/week @ 2025-01-01 43612/week @ 2025-01-08 55903/week @ 2025-01-15 48881/week @ 2025-01-22 45237/week @ 2025-01-29 50012/week @ 2025-02-05 48936/week @ 2025-02-12

201,339 downloads per month
Used in 130 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