ryankurte opened issue #3519:
when using
wiggle::from_witxadding a crate to a workspace breaks inclusion of ofwitxfiles.
the wiggle docs suggest this is based onCARGO_MANIFEST_DIR, but i believe this should always be the package manifest directory.
pchickey commented on issue #3519:
Can you describe in more detail how to reproduce this issue?
For reference when we use wiggle in wasi-common we use build.rs to create an environment variable
WASI_ROOTso that the witx files can be used by the crate and its dependents (wasmtime-wasi, lucet-wasi, etc) https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasi-common/src/snapshots/preview_1.rs#L22
ryankurte commented on issue #3519:
huh,
WASI_ROOTseems like it should solve the problem, but i don't seem to be using it correctly...minimal example uploaded here, you can swap
specfromexcludedtomembersin the workspace file which changes the base path in the codegen macro so the.witxfiles can no-longer be found.
ryankurte edited a comment on issue #3519:
hey thanks for the response!
WASI_ROOTseems like it should solve the problem, but i don't seem to be using it correctly...minimal example uploaded here, you can swap
specfromexcludedtomembersin the workspace file which changes the base path in the codegen macro so the.witxfiles can no-longer be found.
Last updated: Dec 06 2025 at 06:05 UTC