Stream: git-wasmtime

Topic: wasmtime / PR #12857 fix(bindgen,format): enable wasm enc...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 17:43):

mkatychev opened PR #12857 from mkatychev:fix/bindgen-include-bytes to bytecodealliance:main:

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

Use include_bytes en lieu of include_string to allow WASM encoded components to be passed into wasmtime::component::bindgen.

wit_parser::Resolve::push_path seems to already support wasm-encoded format (Added in https://github.com/bytecodealliance/wasm-tools/pull/2415):

The input path can be one of:
- ...
- A wasm-encoded WIT package as a single file in either the text or binary format.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 17:43):

mkatychev requested pchickey for a review on PR #12857.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 17:43):

mkatychev requested wasmtime-core-reviewers for a review on PR #12857.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 27 2026 at 17:48):

mkatychev commented on PR #12857:

Couple of questions came up with this PR:

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 12:37):

alexcrichton submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 12:38):

alexcrichton commented on PR #12857:

should test cases be included in this PR or should that be handled upstream

Ah this is fine as-is, it's more-or-less well-tested already and relaxing to bytes I think is reasonable to have without a test.

has there already been discussions about their similarity and possible reuse?

nope, just some old code and you're witnessing how things evolved over time :)

If you'd like to help clean up with a PR that'd be much appreciated!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 12:54):

alexcrichton added PR #12857 fix(bindgen,format): enable wasm encoded to be used in the bindgen! macro to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 15:04):

alexcrichton merged PR #12857.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 15:04):

alexcrichton removed PR #12857 fix(bindgen,format): enable wasm encoded to be used in the bindgen! macro from the merge queue.


Last updated: Apr 12 2026 at 23:10 UTC