Conversation
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
|
Thanks for looking into this @rvolosatovs!
It looks like the crux of the issue is that the preview2-prototyping project has all the If by using |
You're spot on, Thanks! I'll file an issue upstream! |
Cool, thanks for confirming! I'll close this out since we've confirmed this is an upstream issue but let me know if you disagree |
Motivation
(sorry, clicked the "open PR" button too fast)
This PR adds support for WIT files https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md, used by WebAssembly components to generate bindings via https://github.com/bytecodealliance/wit-bindgen
Today,
.witfiles are trimmed bycrane, which meansbindgenmacro cannot find them (it searches by paths) in the project being built, but, more importantly, in dependencies (here's an example https://github.com/wasmCloud/wasmCloud/actions/runs/4415710680/jobs/7739037159An example of an "unbuildable" WIT-enabled Rust project, which is often included as a depedency is https://github.com/bytecodealliance/preview2-prototyping
Would this PR be something you'd be interested in merging @ipetkov ?
Checklist
docs/API.md(or general documentation) with changesCHANGELOG.md