lann opened PR #14013 from lann:bindgen-component-type to bytecodealliance:main:
Closes #13190
Passing
include_component_type: truetobindgen!causes it to emit the binary-encoded world resolved by bindgen:pub const COMPONENT_TYPE: &[u8] = b"\x00asm[...]processed-by\x01\rwit-component\x070.254.0";This can be passed to
wit_parser::decoding::decode_worldto recover theResolveandWorldIdused to generate the bindings.
lann requested pchickey for a review on PR #14013.
lann requested wasmtime-core-reviewers for a review on PR #14013.
lann requested fitzgen for a review on PR #14013.
lann requested wasmtime-default-reviewers for a review on PR #14013.
:thumbs_up: alexcrichton submitted PR review.
alexcrichton added PR #14013 component: add include_component_type bindgen! option to the merge queue.
github-merge-queue[bot] removed PR #14013 component: add include_component_type bindgen! option from the merge queue.
github-actions[bot] added the label wasmtime:api on PR #14013.
alexcrichton added PR #14013 component: add include_component_type bindgen! option to the merge queue.
:check: alexcrichton merged PR #14013.
alexcrichton removed PR #14013 component: add include_component_type bindgen! option from the merge queue.
Last updated: Jul 29 2026 at 05:03 UTC