#wasm-interface #bindings-generator #wit #component #model #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

22 breaking releases

0.24.0 Apr 2, 2024
0.23.0 Mar 27, 2024
0.22.0 Mar 11, 2024
0.16.0 Dec 5, 2023
0.0.0 Nov 16, 2021

#240 in WebAssembly

Download history 5623/week @ 2024-01-03 6563/week @ 2024-01-10 7216/week @ 2024-01-17 7433/week @ 2024-01-24 7183/week @ 2024-01-31 7253/week @ 2024-02-07 7267/week @ 2024-02-14 9151/week @ 2024-02-21 12648/week @ 2024-02-28 12181/week @ 2024-03-06 18060/week @ 2024-03-13 17852/week @ 2024-03-20 16928/week @ 2024-03-27 21286/week @ 2024-04-03 18512/week @ 2024-04-10 17141/week @ 2024-04-17

76,751 downloads per month
Used in 57 crates (24 directly)

Apache-2.0 WITH LLVM-exception

53KB
437 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–1.1MB
~21K SLoC