#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

32 breaking releases

0.34.0 Oct 8, 2024
0.32.0 Sep 10, 2024
0.28.0 Jul 16, 2024
0.23.0 Mar 27, 2024
0.0.0 Nov 16, 2021

#324 in WebAssembly

Download history 27280/week @ 2024-07-13 36257/week @ 2024-07-20 38338/week @ 2024-07-27 30128/week @ 2024-08-03 29764/week @ 2024-08-10 33891/week @ 2024-08-17 30521/week @ 2024-08-24 30045/week @ 2024-08-31 27384/week @ 2024-09-07 34557/week @ 2024-09-14 29685/week @ 2024-09-21 28029/week @ 2024-09-28 33981/week @ 2024-10-05 23618/week @ 2024-10-12 28982/week @ 2024-10-19 19797/week @ 2024-10-26

110,429 downloads per month
Used in 74 crates (38 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.2MB
~22K SLoC