Wirm is a WebAssembly IR Manipulation Library for the Component Model.
NOTE: This project used to be known as Orca, see discussion on refactor here.
It is based on Dfinity's IC codebase and Walrus.
Wirm is a light-weight, easy-to-use, Rust Library for performing WebAssembly transformations.
It uses wasmparser and wasm_encoder to parse and encode Wasm components/modules and maintains its own Intermediate Representation.
Wirm supports parallel processing during module parsing and encoding to improve performance for modules with many functions. This feature uses rayon to process function bodies concurrently.
Enable the feature by adding the parallel feature to your Cargo.toml:
[dependencies]
wirm = { version = "1.1.0", features = ["parallel"] }To install wasm-tools:
$ cargo install wasm-tools