From 3a5b7e95c883b42d5e1d4d8b421c50f8c40a36b6 Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Thu, 20 Oct 2022 16:01:00 +0200 Subject: [PATCH] chore: Update dependencies --- bench_helpers/Cargo.toml | 2 +- bindings/python/Cargo.lock | 32 ++++++++++++++++---------------- jsonschema/Cargo.toml | 6 +++--- jsonschema/src/main.rs | 10 +++++----- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/bench_helpers/Cargo.toml b/bench_helpers/Cargo.toml index 023f601..e828fed 100644 --- a/bench_helpers/Cargo.toml +++ b/bench_helpers/Cargo.toml @@ -8,4 +8,4 @@ license = "MIT" [dependencies] serde = { version = "1", features = ["derive"] } serde_json = "1" -criterion = "0.3" +criterion = { version = "0.4.0", features = [], default-features = false } diff --git a/bindings/python/Cargo.lock b/bindings/python/Cargo.lock index 534a956..3de0365 100644 --- a/bindings/python/Cargo.lock +++ b/bindings/python/Cargo.lock @@ -235,9 +235,9 @@ dependencies = [ [[package]] name = "fraction" -version = "0.11.2" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad18174c73e668720cf9961281ea94a10a8c4003c2b2ad7117252109e5423a3f" +checksum = "99df8100674344d1cee346c764684f7ad688a4dcaa1a3efb2fdb45daf9acf4f9" dependencies = [ "lazy_static", "num", @@ -245,42 +245,42 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30bdd20c28fadd505d0fd6712cdfcb0d4b5648baf45faef7f852afb2399bb050" +checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" dependencies = [ "futures-core", ] [[package]] name = "futures-core" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf" +checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" [[package]] name = "futures-io" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbf4d2a7a308fd4578637c0b17c7e1c7ba127b8f6ba00b29f717e9655d85eb68" +checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" [[package]] name = "futures-sink" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b20ba5a92e727ba30e72834706623d94ac93a725410b6a6b6fbc1b07f7ba56" +checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" [[package]] name = "futures-task" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1" +checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" [[package]] name = "futures-util" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44fb6cb1be61cc1d2e43b262516aafcf63b241cffdb1d3fa115f91d9c7b09c90" +checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" dependencies = [ "futures-core", "futures-io", @@ -942,9 +942,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.86" +version = "1.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41feea4228a6f1cd09ec7a3593a682276702cd67b5273544757dae23c096f074" +checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45" dependencies = [ "itoa", "ryu", diff --git a/jsonschema/Cargo.toml b/jsonschema/Cargo.toml index 3f815f0..f9ee2f4 100644 --- a/jsonschema/Cargo.toml +++ b/jsonschema/Cargo.toml @@ -29,9 +29,9 @@ ahash = { version = "0.8", features = ["serde"] } anyhow = "1.0" base64 = "0.13" bytecount = { version = "0.6", features = ["runtime-dispatch-simd"] } -clap = { version = "3.2", features = ["derive"], optional = true } +clap = { version = "4.0", features = ["derive"], optional = true } fancy-regex = "0.10" -fraction = { version = "0.11", default-features = false, features = ["with-bigint"] } +fraction = { version = "0.12", default-features = false, features = ["with-bigint"] } iso8601 = "0.5" itoa = "1" lazy_static = "1.4" @@ -49,7 +49,7 @@ uuid = "1" [dev-dependencies] bench_helpers = { path = "../bench_helpers" } -criterion = "0.3" +criterion = { version = "0.4.0", features = [], default-features = false } json_schema_test_suite = { version = "0.3.0", path = "../jsonschema-test-suite" } jsonschema-valid = "0.5" mockito = "0.31" diff --git a/jsonschema/src/main.rs b/jsonschema/src/main.rs index 127fa96..cdd0bd0 100644 --- a/jsonschema/src/main.rs +++ b/jsonschema/src/main.rs @@ -12,23 +12,23 @@ use jsonschema::JSONSchema; type BoxErrorResult = Result>; #[derive(Parser)] -#[clap(name = "jsonschema")] +#[command(name = "jsonschema")] struct Cli { /// A path to a JSON instance (i.e. filename.json) to validate (may be specified multiple times). - #[clap(short = 'i', long = "instance")] + #[arg(short = 'i', long = "instance")] instances: Option>, /// The JSON Schema to validate with (i.e. schema.json). - #[clap(parse(from_os_str), required_unless("version"))] + #[arg(value_parser, required_unless_present("version"))] schema: Option, /// Show program's version number and exit. - #[clap(short = 'v', long = "version")] + #[arg(short = 'v', long = "version")] version: bool, } pub fn main() -> BoxErrorResult<()> { - let config = Cli::from_args(); + let config = Cli::parse(); if config.version { println!(concat!("Version: ", env!("CARGO_PKG_VERSION")));