A Cargo subcommand that streamlines building Wasm components from Rust with automatic WIT binding generation.
cargo-component is the primary developer tool for building WebAssembly components from Rust. It wraps the standard cargo build workflow and adds automatic WIT parsing, wit-bindgen invocation, and component-model binary output — all without requiring manual configuration. Developers write against generated Rust traits that represent their WIT interface, and cargo-component handles the rest. It is maintained by the Bytecode Alliance and is the recommended starting point for any new Rust-based Wasm component.
A Bytecode Alliance CLI and Rust library for parsing, validating, transforming, and composing Wasm components.
A fast, secure WebAssembly runtime built by the Bytecode Alliance with full WASI 0.2 and Component Model support.
The current canonical guide to building Wasm components with Rust — covers cargo-component, Jco, and the full Rust → component → browser/Node path.