Skip to main content

Crate slimwasm

Crate slimwasm 

Source
Expand description

slimwasm - A WASM size profiler for wasm32-unknown-unknown and wasm32-wasip2 binaries

This library provides functionality to analyze WebAssembly binary sizes, compute retained sizes via reachability analysis, and identify what keeps specific items (like core::fmt) in your binary.

Re-exports§

pub use analysis::ItemInfo;
pub use analysis::RetainedSizeAnalyzer;
pub use analysis::SizeInfo;
pub use analysis::WasmAnalysis;
pub use parser::parse_wasm;
pub use parser::parse_wasm_component;
pub use parser::WasmItem;
pub use parser::WasmItemKind;

Modules§

analysis
Size analysis and retained size computation using reachability/dominator-style analysis
parser
WASM binary parsing using wasmparser