Registry / build-tool / wit-bindgen

wit-bindgen

JSON →
library0.58.0rscratesunverified

Rust bindings generator and runtime support for WIT and the component model, used when compiling Rust programs to the component model.

# Cargo.toml [dependencies] wit-bindgen = "0.58.0"
INSTALL
IMPORT
SIG · WIT-BINDGEN
W
wit-bindgen
build-toolrustv0.58.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

generate
use wit_bindgen::generate;

Generate Rust bindings from a WIT interface.

use wit_bindgen::generate; generate!("my-component"); fn main() {}
Debug
Known issues
gotchaRequires the `wit-bindgen` CLI tool to be installed separately.
fix
Install via `cargo install wit-bindgen-cli`.
affects: *
Upgrade
Version history
0.58.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
31
OpenAI (training)
1
Resources
wit-bindgen — cargo add wit-bindgen · libregistry