Crate wirm

Crate wirm 

Source
Expand description

Wirm is a WebAssembly Transformation Library for the Component Model. The design has been inspired by Dfinity’s IC and Walrus.

§Features

§Parallel Parsing and Encoding

Wirm supports parallel processing during module parsing and encoding to improve performance. Enable the parallel feature to parse and encode function bodies concurrently:

[dependencies]
wirm = { version = "1.1.0", features = ["parallel"] }

Re-exports§

pub use crate::opcode::Opcode;
pub use crate::ir::component::Component;
pub use crate::ir::module::Module;
pub use crate::ir::types::DataSegment;
pub use crate::ir::types::DataSegmentKind;
pub use crate::ir::types::DataType;
pub use crate::ir::types::InitInstr;
pub use crate::ir::types::Location;
pub use wasmparser;

Modules§

ir
The Intermediate Representation for components and modules.
iterator
Iterators to traverse either a Component or a Module. Supports injection of Instructions at specific locations.
module_builder
Trait that defines general injection behaviour
opcode
Traits that defines the injection behaviour for wasm opcodes
subiterator
Sub-iterators used by the Iterators. Keep track of current location.