bytecodealliance / bytecodealliance/cargo-component

`cargo component add` not producing runnable/usable binaries

Open
#302 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
593
Forks
68
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.