9 unstable releases (3 breaking)

0.112.0 Mar 9, 2023
0.111.0 Jan 1, 2023
0.110.2 Oct 27, 2022
0.0.1-preview.3 Aug 25, 2022

#687 in WebAssembly

Download history 7190/week @ 2022-11-30 7171/week @ 2022-12-07 6877/week @ 2022-12-14 6393/week @ 2022-12-21 4470/week @ 2022-12-28 8805/week @ 2023-01-04 10333/week @ 2023-01-11 11068/week @ 2023-01-18 11827/week @ 2023-01-25 11070/week @ 2023-02-01 10774/week @ 2023-02-08 11689/week @ 2023-02-15 13377/week @ 2023-02-22 13323/week @ 2023-03-01 13076/week @ 2023-03-08 13650/week @ 2023-03-15

55,544 downloads per month
Used in 8 crates (via wasm-opt)

MIT/Apache

5MB
110K SLoC

C++ 99K SLoC // 0.2% comments JavaScript 5K SLoC // 0.0% comments Python 4K SLoC // 0.2% comments WebAssembly 1K SLoC // 0.0% comments D 530 SLoC // 0.0% comments Rust 379 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