I'm getting this error when I try to cargo publish wasi-common:
Compiling wasi-common v0.13.0 (/home/sunfish/hub/wasmtime/target/package/wasi-common-0.13.0) error: proc macro panicked --> src/wasi.rs:6:1 | 6 | / wiggle::from_witx!({ 7 | | witx: ["wig/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx"], 8 | | ctx: WasiCtx, 9 | | }); | |___^ | = help: message: loading witx: Io("/home/sunfish/hub/wasmtime/target/package/wasi-common-0.13.0/wig/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx", Os { code: 2, kind: NotFound, message: "No such file or directory" })
It reproduces with cargo publish --manifest-path crates/wasi-common/Cargo.toml --dry-run
on master
hm that's not good
@Dan Gohman perhaps try an include
directive in Cargo.toml
for wasi-common
that points to that one file?
or it could point to the whole phases
directory
I added include = ["src/**/*", "LICENSE", "wig/WASI/phases"]
and it didn't help
bah
@Dan Gohman anothe rpossibility may be to use a symlink
have a symlink in the wasi-common package pointing to the witx file in wig
I don't think cargo will package it as a symlink
mkay
that seems to have worked
Oh, but it doesn't work on Windows: https://github.com/bytecodealliance/wasmtime/pull/1416/checks?check_run_id=538185726
Fixed that, and several other issues, and now wiggle and wiggle-test-helpers have a circular dependency with each other.
Last updated: Nov 22 2024 at 16:03 UTC