wirm

Crates.iowirm
lib.rswirm
version2.1.0
created_at2025-07-01 14:25:35.136138+00
updated_at2025-09-25 16:07:38.442843+00
descriptionA lightweight WebAssembly Transformation Library for the Component Model
homepagehttps://github.com/thesuhas/wirm
repositoryhttps://github.com/thesuhas/wirm
max_upload_size
id1733260
size530,765
evilg (ejrgilbert)

documentation

README

Wirm 🐉

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.

About

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.

Cargo Features

Parallel Processing

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"] }

Environment Setup

To install wasm-tools:

$ cargo install wasm-tools
Commit count: 374

cargo fmt