Skip to content

Commit 5f6ebae

Browse files
feat: custom registries for targets in cargo-component new
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>
1 parent 230310c commit 5f6ebae

File tree

4 files changed

+311
-111
lines changed

4 files changed

+311
-111
lines changed

Cargo.lock

Lines changed: 115 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ url = { workspace = true }
4747
wasi-preview1-component-adapter-provider = { workspace = true }
4848
wasm-metadata = { workspace = true }
4949
wasm-pkg-client = { workspace = true }
50+
wasm-pkg-common = { workspace = true }
5051
wasmparser = { workspace = true }
5152
which = { workspace = true }
5253
wit-bindgen-core = { workspace = true }
@@ -96,8 +97,8 @@ serde = { version = "1.0.197", features = ["derive"] }
9697
serde_json = "1.0.115"
9798
tempfile = "3.10.1"
9899
tokio = { version = "1.44.2", default-features = false, features = [
99-
"macros",
100-
"rt-multi-thread",
100+
"macros",
101+
"rt-multi-thread",
101102
] }
102103
tokio-util = "0.7.10"
103104
toml_edit = { version = "0.22.9", features = ["serde"] }
@@ -109,7 +110,8 @@ warg-protocol = "0.9.0"
109110
warg-server = "0.9.0"
110111
wasi-preview1-component-adapter-provider = "29.0.1"
111112
wasm-metadata = "0.227.0"
112-
wasm-pkg-client = "0.9.0"
113+
wasm-pkg-client = "0.11.0"
114+
wasm-pkg-common = "0.11.0"
113115
wasmparser = "0.227.0"
114116
wasmprinter = "0.227.0"
115117
wat = "1.220.0"

0 commit comments

Comments
 (0)