14 releases (breaking)

✓ Uses Rust 2018 edition

0.12.0 Sep 10, 2019
0.10.0 Jul 30, 2019
0.5.0 Mar 6, 2019

#14 in WebAssembly

Download history 1190/week @ 2019-05-28 1199/week @ 2019-06-04 1196/week @ 2019-06-11 800/week @ 2019-06-18 822/week @ 2019-06-25 905/week @ 2019-07-02 1217/week @ 2019-07-09 891/week @ 2019-07-16 426/week @ 2019-07-23 1211/week @ 2019-07-30 785/week @ 2019-08-06 992/week @ 2019-08-13 1105/week @ 2019-08-20 1306/week @ 2019-08-27 1476/week @ 2019-09-03

4,315 downloads per month
Used in 22 crates (16 directly)

MIT/Apache

365KB
8K SLoC

Walrus 🌊🐘

Walrus is a WebAssembly transformation library

Build Status Crates.io version Download docs.rs docs

API Docs | Contributing | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

The walrus crate is a Rust library for performing WebAssembly transformations in a robust and ergonomic fashion. The crate is still in its early days but is currently used to power the wasm-bindgen CLI tool and its own internal transformations.

Using walrus will, in the long term, also allow transforming WebAssembly while preserving DWARF debug information to ensure that debugging the final module is just as nice as debugging the intermediate module.

Stay tuned for more information in the future!

Examples

  • Check out examples/build-wasm-from-scratch.rs for a quick intro to building a Wasm module from scratch with walrus.
  • Check out the wasm-snip project for a relatively simple and self-contained but still Real World example of using walrus.

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.

Dependencies

~1.8–2.5MB
~49K SLoC