13 releases (breaking)

✓ Uses Rust 2018 edition

new 0.11.0 Aug 13, 2019
0.10.0 Jul 30, 2019
0.9.0 Jul 29, 2019
0.5.0 Mar 6, 2019

#19 in WebAssembly

Download history 896/week @ 2019-04-30 646/week @ 2019-05-07 1327/week @ 2019-05-14 1316/week @ 2019-05-21 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

4,385 downloads per month
Used in 16 crates (13 directly)

MIT/Apache

349KB
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

~2.5MB
~48K SLoC