26 releases (breaking)

0.20.3 Nov 27, 2023
0.20.1 Jun 16, 2023
0.19.0 Apr 15, 2021
0.18.0 Jul 14, 2020
0.5.0 Mar 6, 2019

#725 in WebAssembly

Download history 97150/week @ 2023-12-13 36413/week @ 2023-12-20 41134/week @ 2023-12-27 92216/week @ 2024-01-03 88093/week @ 2024-01-10 73305/week @ 2024-01-17 75017/week @ 2024-01-24 97062/week @ 2024-01-31 96245/week @ 2024-02-07 114922/week @ 2024-02-14 98123/week @ 2024-02-21 95827/week @ 2024-02-28 59457/week @ 2024-03-06 56986/week @ 2024-03-13 63332/week @ 2024-03-20 49775/week @ 2024-03-27

247,019 downloads per month
Used in 96 crates (39 directly)

MIT/Apache

420KB
9K SLoC

Walrus 🌊🐘

Walrus is a WebAssembly transformation library

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

~5.5MB
~118K SLoC