File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ repository = { workspace = true }
66license = { workspace = true }
77homepage = ' https://github.com/bytecodealliance/wit-bindgen'
88description = """
9- Runtime support for the `wit-bindgen` crate
9+ Internal runtime support for the `wit-bindgen` crate.
1010"""
1111
1212[dependencies ]
Original file line number Diff line number Diff line change 1+ # ` wit-bindgen-rt `
2+
3+ This is an internal implementation detail of the [ ` wit-bindgen ` ] crate. The
4+ source for this crate lives at https://github.com/bytecodealliance/wit-bindgen
5+ and this crate is located in ` crates/guest-rust/rt ` folder. The purpose of this
6+ crate is to contain "runtime" code related to the macro-expansion of the
7+ ` wit_bindgen::generate! ` macro such that the ` wit-bindgen ` crate dependency can
8+ be removed in some situations.
9+
10+ This crate contains a precompiled object file and archive at
11+ ` src/cabi_realloc.o ` and ` src/libwit_bindgen_cabi_realloc.a ` . This is compiled
12+ from the source ` src/cabi_realloc.c ` and is checked in as precompiled to avoid
13+ needing a C compiler at compile-time which isn't always available. This object
14+ file is only used on wasm targets.
15+
16+ The object file is compiled by
17+ [ this script] https://github.com/bytecodealliance/wit-bindgen/blob/main/ci/rebuild-libcabi-realloc.sh )
18+ and is verified in repository continuous integration that the checked-in
19+ versions match what CI produces.
20+
21+ [ `wit-bindgen` ] : https://crates.io/crates/wit-bindgen
22+
You can’t perform that action at this time.
0 commit comments