alexcrichton opened PR #15149 from alexcrichton:refactor-macro to bytecodealliance:main:
This is the equivalent of bytecodealliance/wit-bindgen#1778 over here in the Wasmtime repository. In short by embedding
$OUT_DIRin the proc macro it makes the build unreproducible and can reduce cache hits in larger build systems. Keep Wasmtime's debugging-only feature in parity withwit-bindgen's feature here by shuffling around how this works.This additionally deletes the
include_generated_code_from_filemacro option as that's basically subsumed bydebugwhich is a bit of a clearer name.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton removed the review request for wasmtime-core-reviewers from PR #15149.
alexcrichton requested pchickey for a review on PR #15149.
alexcrichton requested wasmtime-core-reviewers for a review on PR #15149.
:thumbs_up: pchickey submitted PR review:
Excellent stuff
alexcrichton has enabled auto merge for PR #15149.
alexcrichton added PR #15149 Don't embed $OUT_DIR in proc macros to the merge queue.
:check: alexcrichton merged PR #15149.
alexcrichton removed PR #15149 Don't embed $OUT_DIR in proc macros from the merge queue.
Last updated: Nov 19 2026 at 20:05 UTC