Skip to content
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

cargo component add not producing runnable/usable binaries #302

Open
calvinrp opened this issue May 22, 2024 · 1 comment
Open

cargo component add not producing runnable/usable binaries #302

calvinrp opened this issue May 22, 2024 · 1 comment

Comments

@calvinrp
Copy link
Collaborator

calvinrp commented May 22, 2024

Currently, cargo component add produces binaries using the unlocked-dep import syntax, which is not supported yet. Not runnable or parsable in today's tools. There are a number of things to figure out to get that feature supported, which I'd also like to move forward with.

I'm considering revising cargo component add behavior to produce binaries that can be used today.

Say you have a component package (an implementation not a pure wit package) that you'd like to use as a library in your component. cargo component add example:library would set you up with the bindings to use it. Then when you, cargo component build, the outputted binary includes the composed dependency and would be usable in current released tooling.

@calvinrp
Copy link
Collaborator Author

@macovedj Let's remove or comment out cargo component add until it is in a workable state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant