feat: custom registries for targets in cargo-component new#400
feat: custom registries for targets in cargo-component new#400vados-cosmonic wants to merge 2 commits intobytecodealliance:mainfrom
Conversation
|
It looks like adding Given that currently |
|
@macovedj @calvinrp not sure if we need an upstream release of [EDIT] this bit is still a bit thorny:
Going to put this back into draft for now... Adding namespace registry overrides to wkg.toml needs to land. |
This commit adds support for using custom registries with targets when performing `cargo component new`. Users can specify a registry URI like `oci://ghcr.io` along with a registry namespace prefix like `bytecodealliance` and get easy access to packages (e.g. `docs:adder`) that are provided therein. Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
aa4d36e to
5f6ebae
Compare
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
This commit adds support for using custom registries with targets when performing
cargo component new. Users can specify a registry URI likeoci://ghcr.ioalong with a registry namespace prefix likebytecodeallianceand get easy access to packages (e.g.docs:adder) that are provided therein.NOTE This PR relies on a related one in wasm-pkg-tools
Until that PR is merged, the Cargo.toml in use here can't be updated to remove the pointer to my fork.
An example invocation:
While this invocation seems long, it is much shorter than configuring other tooling, and serves as a decent option for quickstarts IMO.
The one thing left to solve in this issue is how to enable cargo component to pull from namespace registry overrides from via it's own config (or alternatively, create a
wkg.toml)