#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

33 breaking releases

new 0.35.0 Nov 13, 2024
0.33.0 Sep 30, 2024
0.28.0 Jul 16, 2024
0.23.0 Mar 27, 2024
0.0.0 Nov 16, 2021

#255 in WebAssembly

Download history 37417/week @ 2024-07-29 28380/week @ 2024-08-05 30302/week @ 2024-08-12 33731/week @ 2024-08-19 31741/week @ 2024-08-26 28715/week @ 2024-09-02 31472/week @ 2024-09-09 30910/week @ 2024-09-16 29264/week @ 2024-09-23 28709/week @ 2024-09-30 32604/week @ 2024-10-07 23440/week @ 2024-10-14 29867/week @ 2024-10-21 24964/week @ 2024-10-28 31377/week @ 2024-11-04 24678/week @ 2024-11-11

112,649 downloads per month
Used in 75 crates (39 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