-
Notifications
You must be signed in to change notification settings - Fork 57
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
Make composing packages with dependencies easier? #338
Comments
Happy to help. Are you trying to target the |
Hey @calvinrp thanks for helping out! Actually I can get stuff working by just vendoring everything in my package
but that's not very practical: as I add more dependencies, I need to copy their dependencies as well, and that makes managing all of that quite messy. There should be a way to specify a dependency, give its path, and then recursively resolve dependencies (maybe there is already?) |
Yeah, The other (primary) way is with However, what it looks like from your examples, it is just For instance, if you do, These are low-level bindings for |
I am just getting started with components, I and find it quite cumbersome to import other components. Let me try to illustrate my problem.
I am creating a component, depending on
wasi-http
, as such:and I'm importing the
http
component like that:Now the http component itself depends on other components:
I would expect that importing
wasi:http
would recursively import its dependency, but I instead need to individually specify paths to all my dependency's dependencies.Is that a current rough edge, or am I misusing
cargo component
completely?The text was updated successfully, but these errors were encountered: