From 3823f4a424b54df875903ac9783a89bdc9b43ba6 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Sat, 14 Sep 2024 14:43:48 +0200 Subject: [PATCH] Update clap to v4.5 This was previously locked to 4.4 due to MSRV incompatibilities which are now resolved. --- Cargo.lock | 30 ++++++++++++------------------ Cargo.toml | 4 ++-- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0b29d9a847..8e1c53f217 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -375,9 +375,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.18" +version = "4.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c" +checksum = "3e5a21b8495e732f1b3c364c9949b201ca7bae518c502c80256c96ad79eaf6ac" dependencies = [ "clap_builder", "clap_derive", @@ -385,9 +385,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.18" +version = "4.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7" +checksum = "8cf2dd12af7a047ad9d6da2b6b249759a22a7abc0f474c1dae1777afa4b21a73" dependencies = [ "anstream", "anstyle", @@ -397,20 +397,20 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.4.10" +version = "4.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb745187d7f4d76267b37485a65e0149edd0e91a4cfcdd3f27524ad86cee9f3" +checksum = "b5a2d6eec27fce550d708b2be5d798797e5a55b246b323ef36924a0001996352" dependencies = [ "clap", ] [[package]] name = "clap_derive" -version = "4.4.7" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442" +checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" dependencies = [ - "heck 0.4.1", + "heck", "proc-macro2", "quote", "syn", @@ -418,9 +418,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.6.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" +checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" [[package]] name = "colorchoice" @@ -713,12 +713,6 @@ version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -[[package]] -name = "heck" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" - [[package]] name = "heck" version = "0.5.0" @@ -1584,7 +1578,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" dependencies = [ "cfg-expr", - "heck 0.5.0", + "heck", "pkg-config", "toml", "version-compare", diff --git a/Cargo.toml b/Cargo.toml index 7c1ad5bdd8..5c7fcf900d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -80,13 +80,13 @@ dump_lookahead_data = ["byteorder", "image"] arg_enum_proc_macro = "0.3.4" bitstream-io = "~2.3.0" cfg-if = "1.0" -clap = { version = "~4.4.17", optional = true, default-features = false, features = [ +clap = { version = "4.5", optional = true, default-features = false, features = [ "color", "std", "wrap_help", "derive", ] } -clap_complete = { version = "~4.4.7", optional = true } +clap_complete = { version = "4.5", optional = true } libc = "0.2" y4m = { version = "0.8", optional = true } backtrace = { version = "0.3", optional = true }