diff --git a/Cargo.lock b/Cargo.lock index 10e35b3..9126577 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -166,12 +166,34 @@ dependencies = [ "ansi_term", "atty", "bitflags", - "strsim", + "strsim 0.8.0", "textwrap", "unicode-width", "vec_map", ] +[[package]] +name = "clap" +version = "4.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2148adefda54e14492fb9bddcc600b4344c5d1a3123bd666dcb939c6f0e0e57e" +dependencies = [ + "atty", + "bitflags", + "clap_lex", + "strsim 0.10.0", + "termcolor", +] + +[[package]] +name = "clap_lex" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d4198f73e42b4936b35b5bb248d81d2b595ecb170da0bac7655c54eedfa8da8" +dependencies = [ + "os_str_bytes", +] + [[package]] name = "core-foundation-sys" version = "0.8.3" @@ -662,7 +684,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d656b480f604e908333274aaed8ff1d2dc1b52f2a285c2003c560a400d0b39c5" dependencies = [ - "clap", + "clap 2.34.0", "error-chain", "itertools", "lazy_static", @@ -740,7 +762,7 @@ version = "0.3.0" dependencies = [ "anyhow", "chrono", - "clap", + "clap 4.0.26", "futures", "hostname", "humantime", @@ -910,6 +932,12 @@ version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "074864da206b4973b84eb91683020dbefd6a8c3f0f38e054d93954e891935e4e" +[[package]] +name = "os_str_bytes" +version = "6.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5bf27447411e9ee3ff51186bf7a08e16c341efdde93f4d823e8844429bed7e" + [[package]] name = "parking_lot" version = "0.11.2" @@ -1424,6 +1452,12 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + [[package]] name = "syn" version = "1.0.99" @@ -1468,6 +1502,15 @@ dependencies = [ "winapi", ] +[[package]] +name = "termcolor" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +dependencies = [ + "winapi-util", +] + [[package]] name = "textwrap" version = "0.11.0" diff --git a/Cargo.toml b/Cargo.toml index a79a89b..6fdb9da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ path = "src/lib.rs" [dependencies] anyhow = { version = "1", optional = true } -clap = { version = "2", optional = true } +clap = { version = "4", optional = true } chrono = { version = "0.4", features = ["serde"] } futures = { version = "0.3.*"} hostname = { version = "0.3", optional = true } @@ -61,7 +61,7 @@ trust-dns-resolver = { version = "0.20", features = ["tokio-runtime", "dns-over- yansi = "0.5" [build-dependencies] -clap = { version = "2", default-features = false, features = ["suggestions"] } +clap = { version = "4", default-features = false, features = ["suggestions"] } [dev-dependencies] tracing-log = "0.1"