bytecodealliance / bytecodealliance/wasmtime

cargo workspaces break `wiggle::from_witx` path resolution

Open
#3,519 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

when using `wiggle::from_witx` adding a crate to a workspace breaks inclusion of of `witx` files.
the wiggle [docs](https://docs.rs/wiggle/0.31.0/wiggle/macro.from_witx.html) suggest this is based on `CARGO_MANIFEST_DIR`, but i [believe](https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates) this should always be the package manifest directory.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.