-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request: Support multiple package in a single WIT #325
Comments
I am happy to take a look at this |
Also happy to help out with this. I helped a bit with some of the more recent changes for multi-package WIT stuff. I wouldn't be surprised if there are additional changes that need to be made in |
Also looking again, I'm curious if the example was written before or after this change. It looks like this example may not have a root package declaration, which is required after the linked change. |
It may have been from before; however, even with the root package declaration, cargo component fails to compile the app, in part because it assumes the name of each dependency is that of the package group's root package: cargo-component/crates/core/src/registry.rs Line 387 in faf251f
error: failed to create a target world for package `baz` (/Users/kagold/Programs/cargo-component/_scratch/baz/Cargo.toml)
Caused by:
duplicate definitions of package `root:root` found while decoding target dependency `bar:baz` |
relevent upstream work:
bytecodealliance/wasm-tools#1577
bytecodealliance/wit-bindgen#978
It seems like the latest research of
cargo-component
does not support multi-packages in WITs.The text was updated successfully, but these errors were encountered: