chore: Update dependencies
This commit is contained in:
parent
8ee79c57b3
commit
3a5b7e95c8
|
@ -8,4 +8,4 @@ license = "MIT"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
criterion = "0.3"
|
criterion = { version = "0.4.0", features = [], default-features = false }
|
||||||
|
|
|
@ -235,9 +235,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fraction"
|
name = "fraction"
|
||||||
version = "0.11.2"
|
version = "0.12.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ad18174c73e668720cf9961281ea94a10a8c4003c2b2ad7117252109e5423a3f"
|
checksum = "99df8100674344d1cee346c764684f7ad688a4dcaa1a3efb2fdb45daf9acf4f9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"num",
|
"num",
|
||||||
|
@ -245,42 +245,42 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-channel"
|
name = "futures-channel"
|
||||||
version = "0.3.24"
|
version = "0.3.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "30bdd20c28fadd505d0fd6712cdfcb0d4b5648baf45faef7f852afb2399bb050"
|
checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-core",
|
"futures-core",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-core"
|
name = "futures-core"
|
||||||
version = "0.3.24"
|
version = "0.3.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf"
|
checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-io"
|
name = "futures-io"
|
||||||
version = "0.3.24"
|
version = "0.3.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bbf4d2a7a308fd4578637c0b17c7e1c7ba127b8f6ba00b29f717e9655d85eb68"
|
checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-sink"
|
name = "futures-sink"
|
||||||
version = "0.3.24"
|
version = "0.3.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "21b20ba5a92e727ba30e72834706623d94ac93a725410b6a6b6fbc1b07f7ba56"
|
checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-task"
|
name = "futures-task"
|
||||||
version = "0.3.24"
|
version = "0.3.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1"
|
checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-util"
|
name = "futures-util"
|
||||||
version = "0.3.24"
|
version = "0.3.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "44fb6cb1be61cc1d2e43b262516aafcf63b241cffdb1d3fa115f91d9c7b09c90"
|
checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-core",
|
"futures-core",
|
||||||
"futures-io",
|
"futures-io",
|
||||||
|
@ -942,9 +942,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_json"
|
name = "serde_json"
|
||||||
version = "1.0.86"
|
version = "1.0.87"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "41feea4228a6f1cd09ec7a3593a682276702cd67b5273544757dae23c096f074"
|
checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itoa",
|
"itoa",
|
||||||
"ryu",
|
"ryu",
|
||||||
|
|
|
@ -29,9 +29,9 @@ ahash = { version = "0.8", features = ["serde"] }
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
base64 = "0.13"
|
base64 = "0.13"
|
||||||
bytecount = { version = "0.6", features = ["runtime-dispatch-simd"] }
|
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"
|
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"
|
iso8601 = "0.5"
|
||||||
itoa = "1"
|
itoa = "1"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
|
@ -49,7 +49,7 @@ uuid = "1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
bench_helpers = { path = "../bench_helpers" }
|
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" }
|
json_schema_test_suite = { version = "0.3.0", path = "../jsonschema-test-suite" }
|
||||||
jsonschema-valid = "0.5"
|
jsonschema-valid = "0.5"
|
||||||
mockito = "0.31"
|
mockito = "0.31"
|
||||||
|
|
|
@ -12,23 +12,23 @@ use jsonschema::JSONSchema;
|
||||||
type BoxErrorResult<T> = Result<T, Box<dyn Error>>;
|
type BoxErrorResult<T> = Result<T, Box<dyn Error>>;
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
#[clap(name = "jsonschema")]
|
#[command(name = "jsonschema")]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
/// A path to a JSON instance (i.e. filename.json) to validate (may be specified multiple times).
|
/// 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<Vec<PathBuf>>,
|
instances: Option<Vec<PathBuf>>,
|
||||||
|
|
||||||
/// The JSON Schema to validate with (i.e. schema.json).
|
/// 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<PathBuf>,
|
schema: Option<PathBuf>,
|
||||||
|
|
||||||
/// Show program's version number and exit.
|
/// Show program's version number and exit.
|
||||||
#[clap(short = 'v', long = "version")]
|
#[arg(short = 'v', long = "version")]
|
||||||
version: bool,
|
version: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn main() -> BoxErrorResult<()> {
|
pub fn main() -> BoxErrorResult<()> {
|
||||||
let config = Cli::from_args();
|
let config = Cli::parse();
|
||||||
|
|
||||||
if config.version {
|
if config.version {
|
||||||
println!(concat!("Version: ", env!("CARGO_PKG_VERSION")));
|
println!(concat!("Version: ", env!("CARGO_PKG_VERSION")));
|
||||||
|
|
Loading…
Reference in New Issue