#macros #macro #webassembly #transformation #internal #chat #crate #public


Internal macros used by the walrus crate, not for public consumption

12 breaking releases

✓ Uses Rust 2018 edition

0.13.0 Oct 24, 2019
0.11.0 Aug 13, 2019
0.10.0 Jul 30, 2019
0.5.0 Mar 6, 2019

#30 in WebAssembly

Download history 1143/week @ 2019-07-11 678/week @ 2019-07-18 711/week @ 2019-07-25 1067/week @ 2019-08-01 761/week @ 2019-08-08 1179/week @ 2019-08-15 1063/week @ 2019-08-22 1268/week @ 2019-08-29 1606/week @ 2019-09-05 1230/week @ 2019-09-12 2447/week @ 2019-09-19 2336/week @ 2019-09-26 1542/week @ 2019-10-03 1040/week @ 2019-10-10 1461/week @ 2019-10-17

5,962 downloads per month
Used in 24 crates (1 directly)


572 lines

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


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!


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


This project is licensed under either of

at your option.


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.


~26K SLoC