#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

34 breaking releases

0.36.0 Nov 27, 2024
0.34.0 Oct 8, 2024
0.28.0 Jul 16, 2024
0.23.0 Mar 27, 2024
0.0.0 Nov 16, 2021

#241 in WebAssembly

Download history 30586/week @ 2024-08-23 29030/week @ 2024-08-30 28015/week @ 2024-09-06 35366/week @ 2024-09-13 30636/week @ 2024-09-20 27460/week @ 2024-09-27 34410/week @ 2024-10-04 23586/week @ 2024-10-11 29092/week @ 2024-10-18 23393/week @ 2024-10-25 31662/week @ 2024-11-01 24963/week @ 2024-11-08 31403/week @ 2024-11-15 26465/week @ 2024-11-22 35971/week @ 2024-11-29 29442/week @ 2024-12-06

127,012 downloads per month
Used in 73 crates (41 directly)

Apache-2.0…

55KB
457 lines

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.3MB
~24K SLoC