coreutils: update to clap 4

This commit is contained in:
Terts Diepraam
2022-10-01 12:27:32 +02:00
parent 153614c40e
commit 84b7ecd32d
3 changed files with 137 additions and 115 deletions
Generated
+134 -112
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -261,8 +261,8 @@ uudoc = [ "zip" ]
[workspace]
[dependencies]
clap = { version = "3.2", features = ["wrap_help", "cargo"] }
clap_complete = "3.1"
clap = { version = "4.0", features = ["wrap_help", "cargo"] }
clap_complete = "4.0"
once_cell = "1.13.1"
phf = "0.10.1"
selinux = { version="0.3", optional = true }
+1 -1
View File
@@ -39,7 +39,7 @@ pub fn main() {
let mut mf = File::create(Path::new(&out_dir).join("uutils_map.rs")).unwrap();
mf.write_all(
"type UtilityMap<T> = phf::Map<&'static str, (fn(T) -> i32, fn() -> Command<'static>)>;\n\
"type UtilityMap<T> = phf::Map<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\
\n\
fn util_map<T: uucore::Args>() -> UtilityMap<T> {\n"
.as_bytes(),