This PR fell out of this comment in bytecodealliance/wasmtime#3025.
In short, the workspace added in WebAssembly/WASI#398 causes some surprising headaches when attempting to use this in projects with a certain shape of nested cargo workspace. As I understand it, that is an instance of the bug described in rust-lang/cargo#6745, wherein excludes do not behave properly when excluding a subdirectory within a workspace member.
So, in order to make witx and witx-cli easier to incorporate in such projects, we hoist witx-cli into a sibling crate at tools/witx-cli rather than tools/witx/cli.
This PR fell out of this comment in bytecodealliance/wasmtime#3025.
In short, the workspace added in WebAssembly/WASI#398 causes some surprising headaches when attempting to use this in projects with a certain shape of nested cargo workspace. As I understand it, that is an instance of the bug described in rust-lang/cargo#6745, wherein
excludes
do not behave properly when excluding a subdirectory within a workspace member.So, in order to make
witx
andwitx-cli
easier to incorporate in such projects, we hoistwitx-cli
into a sibling crate attools/witx-cli
rather thantools/witx/cli
.