Stream: wasmtime

Topic: problem publishing wasi-common


view this post on Zulip Dan Gohman (Mar 26 2020 at 22:53):

I'm getting this error when I try to cargo publish wasi-common:

view this post on Zulip Dan Gohman (Mar 26 2020 at 22:54):

   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" })

view this post on Zulip Dan Gohman (Mar 26 2020 at 22:54):

It reproduces with cargo publish --manifest-path crates/wasi-common/Cargo.toml --dry-run on master

view this post on Zulip Alex Crichton (Mar 26 2020 at 22:54):

hm that's not good

view this post on Zulip Alex Crichton (Mar 26 2020 at 22:54):

@Dan Gohman perhaps try an include directive in Cargo.toml for wasi-common

view this post on Zulip Alex Crichton (Mar 26 2020 at 22:54):

that points to that one file?

view this post on Zulip Alex Crichton (Mar 26 2020 at 22:55):

or it could point to the whole phases directory

view this post on Zulip Dan Gohman (Mar 26 2020 at 22:59):

I added include = ["src/**/*", "LICENSE", "wig/WASI/phases"] and it didn't help

view this post on Zulip Alex Crichton (Mar 26 2020 at 23:01):

bah

view this post on Zulip Alex Crichton (Mar 26 2020 at 23:01):

@Dan Gohman anothe rpossibility may be to use a symlink

view this post on Zulip Alex Crichton (Mar 26 2020 at 23:01):

have a symlink in the wasi-common package pointing to the witx file in wig

view this post on Zulip Alex Crichton (Mar 26 2020 at 23:01):

I don't think cargo will package it as a symlink

view this post on Zulip Dan Gohman (Mar 26 2020 at 23:02):

mkay

view this post on Zulip Dan Gohman (Mar 26 2020 at 23:04):

that seems to have worked

view this post on Zulip Dan Gohman (Mar 27 2020 at 02:39):

Oh, but it doesn't work on Windows: https://github.com/bytecodealliance/wasmtime/pull/1416/checks?check_run_id=538185726

Here are several changes that came up in the process of cargo publishing 0.13.

view this post on Zulip Dan Gohman (Mar 27 2020 at 05:12):

Fixed that, and several other issues, and now wiggle and wiggle-test-helpers have a circular dependency with each other.


Last updated: Oct 23 2024 at 20:03 UTC