#component-model #wasm-component #wit #bindings-generator #wasm-interface #wasm-bindings #run-time

wit-bindgen

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

39 breaking releases

new 0.41.0 Mar 13, 2025
0.39.0 Feb 5, 2025
0.36.0 Nov 27, 2024
0.28.0 Jul 16, 2024
0.0.0 Nov 16, 2021

#3 in WebAssembly

Download history 29548/week @ 2024-11-21 31650/week @ 2024-11-28 31130/week @ 2024-12-05 30775/week @ 2024-12-12 21307/week @ 2024-12-19 16466/week @ 2024-12-26 25459/week @ 2025-01-02 44009/week @ 2025-01-09 35210/week @ 2025-01-16 42516/week @ 2025-01-23 39027/week @ 2025-01-30 47703/week @ 2025-02-06 31839/week @ 2025-02-13 47301/week @ 2025-02-20 42547/week @ 2025-02-27 40036/week @ 2025-03-06

168,121 downloads per month
Used in 97 crates (53 directly)

Apache-2.0…

110KB
1.5K SLoC

wit-bindgen

Guest Rust language bindings generator for WIT and the Component Model

A Bytecode Alliance project

supported rustc stable Documentation Status

About

This crate provides a macro, generate!, to automatically generate Rust bindings for a WIT world. For more information about this crate see the online documentation which includes some examples and longer form reference documentation as well.

This crate is developed as a portion of the wit-bindgen repository which also contains a CLI and generators for other languages.

License

This project is licensed under the Apache 2.0 license with the LLVM exception. See LICENSE for more details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

Dependencies

~0–1.8MB
~32K SLoC