22 breaking releases

new 0.42.1 May 6, 2025
0.41.0 Mar 13, 2025
0.36.0 Nov 27, 2024
0.28.0 Jul 16, 2024
0.23.0 Mar 27, 2024

#16 in FFI

Download history 44975/week @ 2025-01-18 201217/week @ 2025-01-25 397854/week @ 2025-02-01 499379/week @ 2025-02-08 598669/week @ 2025-02-15 814685/week @ 2025-02-22 1164453/week @ 2025-03-01 1163466/week @ 2025-03-08 1433495/week @ 2025-03-15 1765056/week @ 2025-03-22 1142956/week @ 2025-03-29 1262170/week @ 2025-04-05 1065925/week @ 2025-04-12 1064538/week @ 2025-04-19 1034367/week @ 2025-04-26 979562/week @ 2025-05-03

4,348,221 downloads per month
Used in 28,909 crates (10 directly)

Apache-2.0…

135KB
2K SLoC

Contains (static library, 1KB) src/libwit_bindgen_cabi.a

wit-bindgen-rt

This is an internal implementation detail of the wit-bindgen crate. The source for this crate lives at https://github.com/bytecodealliance/wit-bindgen and this crate is located in crates/guest-rust/rt folder. The purpose of this crate is to contain "runtime" code related to the macro-expansion of the wit_bindgen::generate! macro such that the wit-bindgen crate dependency can be removed in some situations.

This crate contains a precompiled object file and archive at src/wit_bindgen_cabi.o and src/libwit_bindgen_cabi.a. This is compiled from the source src/wit_bindgen_cabi.c and is checked in as precompiled to avoid needing a C compiler at compile-time which isn't always available. This object file is only used on wasm targets.

The object file is compiled by [this script]https://github.com/bytecodealliance/wit-bindgen/blob/main/ci/rebuild-libwit-bindgen-cabi.sh) and is verified in repository continuous integration that the checked-in versions match what CI produces.

Dependencies

~170KB