From 11d6d34870bffd13e6f069fa165903aa08f95dd7 Mon Sep 17 00:00:00 2001 From: Taylor Thomas Date: Tue, 15 Oct 2024 11:35:08 -0600 Subject: [PATCH] chore: Updates deps to use latest OCI clients Signed-off-by: Taylor Thomas --- Cargo.lock | 263 +++++++++++++---------- Cargo.toml | 4 +- crates/wasm-pkg-client/src/oci/config.rs | 2 + 3 files changed, 151 insertions(+), 118 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 96dc664..f2c0ff1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -518,9 +518,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.28" +version = "1.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e80e3b6a3ab07840e1cae9b0666a63970dc28e8ed5ffbcdacbfc760c281bfc1" +checksum = "b16803a61b81d9eabb7eae2588776c4c1e584b738ede45fdbb4c972cec1e9945" dependencies = [ "shlex", ] @@ -812,6 +812,37 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "derive_builder" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" +dependencies = [ + "derive_builder_macro", +] + +[[package]] +name = "derive_builder_core" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.79", +] + +[[package]] +name = "derive_builder_macro" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" +dependencies = [ + "derive_builder_core", + "syn 2.0.79", +] + [[package]] name = "dialoguer" version = "0.11.0" @@ -1255,6 +1286,18 @@ dependencies = [ "wasi", ] +[[package]] +name = "getset" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f636605b743120a8d32ed92fc27b6cde1a769f8f936c065151eb66f88ded513c" +dependencies = [ + "proc-macro-error2", + "proc-macro2", + "quote", + "syn 2.0.79", +] + [[package]] name = "gimli" version = "0.31.1" @@ -1441,9 +1484,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" +checksum = "bbbff0a806a4728c99295b254c8838933b5b082d75e3cb70c8dab21fdfbcfa9a" dependencies = [ "bytes 1.7.2", "futures-channel", @@ -1685,9 +1728,9 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "js-sys" -version = "0.3.71" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cb94a0ffd3f3ee755c20f7d8752f45cac88605a4dcf808abcff72873296ec7b" +checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" dependencies = [ "wasm-bindgen", ] @@ -2175,9 +2218,9 @@ dependencies = [ [[package]] name = "oci-client" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f5098b86f972ac3484f7c9011bbbbd64aaa7e21d10d2c1a91fefb4ad0ba2ad9" +checksum = "53e050f8bab3f561aa5ab537e1a6ed24006d58b4ee93cd6bb2c0cb822726f306" dependencies = [ "bytes 1.7.2", "chrono", @@ -2186,6 +2229,7 @@ dependencies = [ "http-auth", "jwt", "lazy_static 1.5.0", + "oci-spec", "olpc-cjson", "regex", "reqwest", @@ -2198,11 +2242,27 @@ dependencies = [ "unicase", ] +[[package]] +name = "oci-spec" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cee185ce7cf1cce45e194e34cd87c0bad7ff0aa2e8917009a2da4f7b31fb363" +dependencies = [ + "derive_builder", + "getset", + "regex", + "serde 1.0.210", + "serde_json", + "strum", + "strum_macros", + "thiserror", +] + [[package]] name = "oci-wasm" -version = "0.0.5" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d3493d1985a31c5fbd4b37f72a319aab88b55908185a5a799219c6152e9da9b" +checksum = "f8403a1f0598a12452babb25a7bdf815269c4d83b064862a560879e66e3e85ee" dependencies = [ "anyhow", "chrono", @@ -2211,8 +2271,8 @@ dependencies = [ "serde_json", "sha2", "tokio", - "wit-component 0.215.0", - "wit-parser 0.215.0", + "wit-component", + "wit-parser", ] [[package]] @@ -2357,9 +2417,9 @@ dependencies = [ [[package]] name = "pathdiff" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" +checksum = "d61c5ce1153ab5b689d0c074c4e7fc613e942dfb7dd9eea5ab202d2ad91fe361" [[package]] name = "pbjson" @@ -2540,6 +2600,28 @@ dependencies = [ "toml_edit 0.22.22", ] +[[package]] +name = "proc-macro-error-attr2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "proc-macro-error2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" +dependencies = [ + "proc-macro-error-attr2", + "proc-macro2", + "quote", + "syn 2.0.79", +] + [[package]] name = "proc-macro2" version = "1.0.87" @@ -2791,9 +2873,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.11.0" +version = "1.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8" +checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" dependencies = [ "aho-corasick", "memchr", @@ -3043,9 +3125,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e696e35370c65c9c541198af4543ccd580cf17fc25d8e05c5a242b202488c55" +checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" [[package]] name = "rustls-webpki" @@ -3058,6 +3140,12 @@ dependencies = [ "untrusted", ] +[[package]] +name = "rustversion" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" + [[package]] name = "ryu" version = "1.0.18" @@ -3502,6 +3590,25 @@ dependencies = [ "syn 2.0.79", ] +[[package]] +name = "strum" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" + +[[package]] +name = "strum_macros" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.79", +] + [[package]] name = "subtle" version = "2.6.1" @@ -4253,9 +4360,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.94" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef073ced962d62984fb38a36e5fdc1a2b23c9e0e1fa0689bb97afa4202ef6887" +checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" dependencies = [ "cfg-if 1.0.0", "once_cell", @@ -4264,9 +4371,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.94" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4bfab14ef75323f4eb75fa52ee0a3fb59611977fd3240da19b2cf36ff85030e" +checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" dependencies = [ "bumpalo", "log", @@ -4279,9 +4386,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.44" +version = "0.4.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65471f79c1022ffa5291d33520cbbb53b7687b01c2f8e83b57d102eed7ed479d" +checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -4291,9 +4398,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.94" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7bec9830f60924d9ceb3ef99d55c155be8afa76954edffbb5936ff4509474e7" +checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4301,9 +4408,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.94" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c74f6e152a76a2ad448e223b0fc0b6b5747649c3d769cc6bf45737bf97d0ed6" +checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" dependencies = [ "proc-macro2", "quote", @@ -4314,9 +4421,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.94" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a42f6c679374623f295a8623adfe63d9284091245c3504bde47c17a3ce2777d9" +checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" [[package]] name = "wasm-compose" @@ -4349,16 +4456,6 @@ dependencies = [ "wasmparser 0.121.2", ] -[[package]] -name = "wasm-encoder" -version = "0.215.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb56df3e06b8e6b77e37d2969a50ba51281029a9aeb3855e76b7f49b6418847" -dependencies = [ - "leb128", - "wasmparser 0.215.0", -] - [[package]] name = "wasm-encoder" version = "0.219.1" @@ -4369,22 +4466,6 @@ dependencies = [ "wasmparser 0.219.1", ] -[[package]] -name = "wasm-metadata" -version = "0.215.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c6bb07c5576b608f7a2a9baa2294c1a3584a249965d695a9814a496cb6d232f" -dependencies = [ - "anyhow", - "indexmap 2.6.0", - "serde 1.0.210", - "serde_derive", - "serde_json", - "spdx", - "wasm-encoder 0.215.0", - "wasmparser 0.215.0", -] - [[package]] name = "wasm-metadata" version = "0.219.1" @@ -4430,9 +4511,9 @@ dependencies = [ "warg-client", "warg-crypto", "warg-protocol", - "wasm-metadata 0.219.1", + "wasm-metadata", "wasm-pkg-common", - "wit-component 0.219.1", + "wit-component", ] [[package]] @@ -4472,12 +4553,12 @@ dependencies = [ "tokio-util", "toml 0.8.19", "tracing", - "wasm-metadata 0.219.1", + "wasm-metadata", "wasm-pkg-client", "wasm-pkg-common", "windows-sys 0.52.0", - "wit-component 0.219.1", - "wit-parser 0.219.1", + "wit-component", + "wit-parser", ] [[package]] @@ -4504,19 +4585,6 @@ dependencies = [ "semver 1.0.23", ] -[[package]] -name = "wasmparser" -version = "0.215.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53fbde0881f24199b81cf49b6ff8f9c145ac8eb1b7fc439adb5c099734f7d90e" -dependencies = [ - "ahash", - "bitflags 2.6.0", - "hashbrown 0.14.5", - "indexmap 2.6.0", - "semver 1.0.23", -] - [[package]] name = "wasmparser" version = "0.219.1" @@ -4564,9 +4632,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.71" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44188d185b5bdcae1052d08bcbcf9091a5524038d4572cc4f4f2bb9d5554ddd9" +checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" dependencies = [ "js-sys", "wasm-bindgen", @@ -4829,25 +4897,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "wit-component" -version = "0.215.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f725e3885fc5890648be5c5cbc1353b755dc932aa5f1aa7de968b912a3280743" -dependencies = [ - "anyhow", - "bitflags 2.6.0", - "indexmap 2.6.0", - "log", - "serde 1.0.210", - "serde_derive", - "serde_json", - "wasm-encoder 0.215.0", - "wasm-metadata 0.215.0", - "wasmparser 0.215.0", - "wit-parser 0.215.0", -] - [[package]] name = "wit-component" version = "0.219.1" @@ -4862,27 +4911,9 @@ dependencies = [ "serde_derive", "serde_json", "wasm-encoder 0.219.1", - "wasm-metadata 0.219.1", + "wasm-metadata", "wasmparser 0.219.1", - "wit-parser 0.219.1", -] - -[[package]] -name = "wit-parser" -version = "0.215.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "935a97eaffd57c3b413aa510f8f0b550a4a9fe7d59e79cd8b89a83dcb860321f" -dependencies = [ - "anyhow", - "id-arena", - "indexmap 2.6.0", - "log", - "semver 1.0.23", - "serde 1.0.210", - "serde_derive", - "serde_json", - "unicode-xid", - "wasmparser 0.215.0", + "wit-parser", ] [[package]] @@ -4924,7 +4955,7 @@ dependencies = [ "wasm-pkg-client", "wasm-pkg-common", "wasm-pkg-core", - "wit-component 0.219.1", + "wit-component", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 8ab23ee..46b7f1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,10 +15,10 @@ bytes = "1.7" docker_credential = "1.2.1" etcetera = "0.8" futures-util = "0.3.30" -oci-client = { version = "0.12", default-features = false, features = [ +oci-client = { version = "0.13", default-features = false, features = [ "rustls-tls", ] } -oci-wasm = { version = "0.0.5", default-features = false, features = [ +oci-wasm = { version = "0.1", default-features = false, features = [ "rustls-tls", ] } semver = "1.0.23" diff --git a/crates/wasm-pkg-client/src/oci/config.rs b/crates/wasm-pkg-client/src/oci/config.rs index 9aef690..87ea143 100644 --- a/crates/wasm-pkg-client/src/oci/config.rs +++ b/crates/wasm-pkg-client/src/oci/config.rs @@ -24,6 +24,8 @@ impl Clone for OciRegistryConfig { protocol: self.client_config.protocol.clone(), extra_root_certificates: self.client_config.extra_root_certificates.clone(), platform_resolver: None, + https_proxy: self.client_config.https_proxy.clone(), + no_proxy: self.client_config.no_proxy.clone(), ..self.client_config }; Self {