diff --git a/Cargo.lock b/Cargo.lock index 3df991d5a..a06bba1ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -188,15 +188,25 @@ version = "3.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" dependencies = [ - "atty", "bitflags", - "clap_derive 3.2.18", - "clap_lex", + "clap_lex 0.2.4", "indexmap", + "textwrap", +] + +[[package]] +name = "clap" +version = "4.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f78ad8e84aa8e8aa3e821857be40eb4b925ff232de430d4dd2ae6aa058cbd92" +dependencies = [ + "atty", + "bitflags", + "clap_derive", + "clap_lex 0.3.0", "once_cell", "strsim", "termcolor", - "textwrap", ] [[package]] @@ -205,14 +215,14 @@ version = "3.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f7a2e0a962c45ce25afce14220bc24f9dade0a1787f185cecf96bfba7847cd8" dependencies = [ - "clap", + "clap 3.2.22", ] [[package]] name = "clap_derive" -version = "3.2.18" +version = "4.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea0c8bce528c4be4da13ea6fead8965e95b6073585a2f05204bd8f4119f82a65" +checksum = "ca689d7434ce44517a12a89456b2be4d1ea1cafcd8f581978c03d45f5a5c12a7" dependencies = [ "heck", "proc-macro-error", @@ -222,23 +232,19 @@ dependencies = [ ] [[package]] -name = "clap_derive" -version = "4.0.1" +name = "clap_lex" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca689d7434ce44517a12a89456b2be4d1ea1cafcd8f581978c03d45f5a5c12a7" +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" dependencies = [ - "heck", - "proc-macro-error", - "proc-macro2", - "quote", - "syn", + "os_str_bytes", ] [[package]] name = "clap_lex" -version = "0.2.4" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" +checksum = "0d4198f73e42b4936b35b5bb248d81d2b595ecb170da0bac7655c54eedfa8da8" dependencies = [ "os_str_bytes", ] @@ -987,8 +993,8 @@ version = "0.1.0" dependencies = [ "anyhow", "chrono", - "clap", - "clap_derive 4.0.1", + "clap 4.0.4", + "clap_derive", "flate2", "libcgroups", "libcontainer", @@ -1089,7 +1095,7 @@ name = "libcgroups" version = "0.0.3" dependencies = [ "anyhow", - "clap", + "clap 4.0.4", "dbus", "env_logger 0.9.1", "errno", @@ -1176,7 +1182,7 @@ dependencies = [ name = "liboci-cli" version = "0.0.3" dependencies = [ - "clap", + "clap 4.0.4", ] [[package]] @@ -2989,7 +2995,7 @@ version = "0.0.3" dependencies = [ "anyhow", "chrono", - "clap", + "clap 4.0.4", "clap_complete", "libcgroups", "libcontainer", diff --git a/crates/libcgroups/Cargo.toml b/crates/libcgroups/Cargo.toml index 08ab7163d..ba5a3ba56 100644 --- a/crates/libcgroups/Cargo.toml +++ b/crates/libcgroups/Cargo.toml @@ -37,7 +37,7 @@ libc = { version = "0.2.127", optional = true } oci-spec = { version = "0.5.8", features = ["proptests", "runtime"] } quickcheck = "1" mockall = { version = "0.11.2", features = [] } -clap = "3.2.22" +clap = "4.0.4" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" env_logger = "0.9" diff --git a/crates/liboci-cli/Cargo.toml b/crates/liboci-cli/Cargo.toml index 293a1e7cc..a70a1b6e4 100644 --- a/crates/liboci-cli/Cargo.toml +++ b/crates/liboci-cli/Cargo.toml @@ -11,6 +11,6 @@ edition = "2021" keywords = ["youki", "container", "oci"] [dependencies.clap] -version = "3.2.22" +version = "4.0.4" default-features = false features = ["std", "suggestions", "derive", "cargo"] diff --git a/crates/youki/Cargo.toml b/crates/youki/Cargo.toml index ef1cf24a3..1a9a08161 100644 --- a/crates/youki/Cargo.toml +++ b/crates/youki/Cargo.toml @@ -12,7 +12,7 @@ build = "build.rs" keywords = ["youki", "container"] [dependencies.clap] -version = "3.2.22" +version = "4.0.4" default-features = false features = ["std", "suggestions", "derive", "cargo"] diff --git a/tests/rust-integration-tests/integration_test/Cargo.toml b/tests/rust-integration-tests/integration_test/Cargo.toml index 62befd827..63445a8a9 100644 --- a/tests/rust-integration-tests/integration_test/Cargo.toml +++ b/tests/rust-integration-tests/integration_test/Cargo.toml @@ -25,7 +25,7 @@ uuid = "1.1" which = "4.3.0" [dependencies.clap] -version = "3.2.22" +version = "4.0.4" default-features = false features = ["std", "suggestions", "derive", "cargo"]