From ce5b3dbb9a2688f56e5ddd3a4111211b0aec7080 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Sun, 24 Sep 2023 12:39:12 +1000 Subject: [PATCH] Add new optional dep `cargo-dist-schema` Signed-off-by: Jiahao XU --- Cargo.lock | 61 +++++++++++++++++++++++++++++ crates/binstalk-fetchers/Cargo.toml | 2 + 2 files changed, 63 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index b539bd0e..e2eb3740 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,6 +294,7 @@ dependencies = [ "binstalk-downloader", "binstalk-types", "bytes", + "cargo-dist-schema", "compact_str", "either", "itertools", @@ -489,6 +490,12 @@ dependencies = [ "pkg-config", ] +[[package]] +name = "camino" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" + [[package]] name = "cargo-binstall" version = "1.6.0" @@ -518,6 +525,19 @@ dependencies = [ "vergen", ] +[[package]] +name = "cargo-dist-schema" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "535812f70bc32f880a4e8b7475c50299be4011ea55f3fb647b1111a79605c18e" +dependencies = [ + "camino", + "schemars", + "semver", + "serde", + "serde_json", +] + [[package]] name = "cargo-toml-workspace" version = "4.0.0" @@ -871,6 +891,12 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" +[[package]] +name = "dyn-clone" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d2f3407d9a573d666de4b5bdf10569d73ca9478087346697dcbae6244bfbcd" + [[package]] name = "either" version = "1.9.0" @@ -3255,6 +3281,30 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "schemars" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f7b0ce13155372a76ee2e1c5ffba1fe61ede73fbea5630d61eee6fac4929c0c" +dependencies = [ + "dyn-clone", + "schemars_derive", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e85e2a16b12bdb763244c69ab79363d71db2b4b918a2def53f80b02e0574b13c" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 1.0.109", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -3332,6 +3382,17 @@ dependencies = [ "syn 2.0.48", ] +[[package]] +name = "serde_derive_internals" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "serde_json" version = "1.0.111" diff --git a/crates/binstalk-fetchers/Cargo.toml b/crates/binstalk-fetchers/Cargo.toml index 39981dee..1f2b17c6 100644 --- a/crates/binstalk-fetchers/Cargo.toml +++ b/crates/binstalk-fetchers/Cargo.toml @@ -15,6 +15,7 @@ async-trait = "0.1.68" binstalk-downloader = { version = "0.9.6", path = "../binstalk-downloader", default-features = false, features = ["gh-api-client"] } binstalk-types = { version = "0.6.1", path = "../binstalk-types" } bytes = "1.4.0" +cargo-dist-schema = { version = "0.2.0", optional = true } compact_str = { version = "0.7.0" } either = "1.8.1" itertools = "0.12.0" @@ -34,6 +35,7 @@ binstalk-downloader = { version = "0.9.6", path = "../binstalk-downloader" } [features] quickinstall = [] +dist-manifest = ["dep:cargo-dist-schema"] [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"]