#component-model #bindings-generator #wit #run-time #generate

wit-bindgen

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

35 breaking releases

new 0.37.0 Jan 10, 2025
0.36.0 Nov 27, 2024
0.35.0 Nov 13, 2024
0.28.0 Jul 16, 2024
0.0.0 Nov 16, 2021

#208 in WebAssembly

Download history 29957/week @ 2024-09-22 27237/week @ 2024-09-29 33881/week @ 2024-10-06 23366/week @ 2024-10-13 29532/week @ 2024-10-20 25245/week @ 2024-10-27 30953/week @ 2024-11-03 24893/week @ 2024-11-10 31495/week @ 2024-11-17 26764/week @ 2024-11-24 36334/week @ 2024-12-01 29039/week @ 2024-12-08 31486/week @ 2024-12-15 15625/week @ 2024-12-22 16611/week @ 2024-12-29 30849/week @ 2025-01-05

97,089 downloads per month
Used in 79 crates (45 directly)

Apache-2.0…

98KB
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.7MB
~30K SLoC