diff --git a/.clippy.toml b/.clippy.toml index 16caf02ee..22fd4be73 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1 +1 @@ -msrv = "1.60.0" +msrv = "1.64.0" diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 9c2faa0f4..b1b8dca54 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -11,7 +11,7 @@ env: PROJECT_NAME: coreutils PROJECT_DESC: "Core universal (cross-platform) utilities" PROJECT_AUTH: "uutils" - RUST_MIN_SRV: "1.60.0" ## MSRV v1.60.0 + RUST_MIN_SRV: "1.64.0" # * style job configuration STYLE_FAIL_ON_FAULT: true ## (bool) fail the build if a style job contains a fault (error or warning); may be overridden on a per-job basis diff --git a/Cargo.lock b/Cargo.lock index 573c1b634..3df301eac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1332,8 +1332,6 @@ dependencies = [ "bitflags", "cfg-if", "libc", - "memoffset", - "pin-utils", "static_assertions", ] @@ -1827,12 +1825,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "retain_mut" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c31b5c4033f8fdde8700e4657be2c497e7288f01515be52168c631e2e4d4086" - [[package]] name = "rlimit" version = "0.8.3" @@ -3118,7 +3110,6 @@ version = "0.0.17" dependencies = [ "clap", "libc", - "retain_mut", "uucore", ] diff --git a/Cargo.toml b/Cargo.toml index 0df012ea0..679f96d25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ # coreutils (uutils) # * see the repository LICENSE, README, and CONTRIBUTING files for more information -# spell-checker:ignore (libs) libselinux gethostid procfs +# spell-checker:ignore (libs) libselinux gethostid procfs bigdecimal kqueue [package] name = "coreutils" @@ -16,7 +16,7 @@ repository = "https://github.com/uutils/coreutils" readme = "README.md" keywords = ["coreutils", "uutils", "cross-platform", "cli", "utility"] categories = ["command-line-utilities"] -rust-version = "1.60.0" +rust-version = "1.64.0" edition = "2021" build = "build.rs" @@ -262,17 +262,90 @@ feat_os_windows_legacy = [ # * bypass/override ~ translate 'test' feature name to avoid dependency collision with rust core 'test' crate (o/w surfaces as compiler errors during testing) test = [ "uu_test" ] -[workspace] - -[dependencies] +[workspace.dependencies] +atty = "0.2" +bigdecimal = "0.3" +binary-heap-plus = "0.5.0" +bstr = "1.0" +bytecount = "0.6.3" +byteorder = "1.3.2" +chrono = { version="^0.4.23", default-features=false, features=["std", "alloc", "clock"]} clap = { version = "4.0", features = ["wrap_help", "cargo"] } clap_complete = "4.0" +compare = "0.1.0" +coz = { version = "0.1.3" } +crossterm = ">=0.19" +ctrlc = { version = "3.0", features = ["termination"] } +exacl = "0.9.0" +file_diff = "1.0.0" +filetime = "0.2" +fnv = "1.0.7" +fs_extra = "1.1.0" +fts-sys = "0.2" +gcd = "2.2" +glob = "0.3.0" +half = "2.1" +indicatif = "0.17" +itertools = "0.10.0" +libc = "0.2.139" +lscolors = { version = "0.13.0", default-features=false, features = ["nu-ansi-term"] } +memchr = "2" +nix = { version="0.26", default-features=false } +nom = "7.1.1" +notify = { version = "=5.0.0", features=["macos_kqueue"]} +num_cpus = "1.14" +num-bigint = "0.4.0" +num-traits = "0.2.15" +number_prefix = "0.4" once_cell = "1.13.1" +onig = { version = "~6.4", default-features = false } +ouroboros = "0.15.5" phf = "0.11.1" -selinux = { version="0.3", optional = true } +phf_codegen = "0.11.1" +platform-info = "1.0.2" +quick-error = "2.0.1" +rand = { version = "0.8", features = ["small_rng"] } +rand_core = "0.6" +rayon = "1.5" +redox_syscall = "0.2" +regex = "1.7.1" +rust-ini = "0.18.0" +same-file = "1.0.6" +selinux = "0.3" +signal-hook = "0.3.14" +smallvec = { version = "1.10", features = ["union"] } +strum = "0.24.1" +strum_macros = "0.24.2" +tempfile = "3.3.0" +term_grid = "0.1.5" +terminal_size = "0.2.2" textwrap = { version="0.16.0", features=["terminal_size"] } +thiserror = "1.0" +time = { version="0.3" } +unicode-segmentation = "1.9.0" +unicode-width = "0.1.8" +utf-8 = "0.7.6" +walkdir = "2.2" +winapi-util = "0.1.5" +windows-sys = { version="0.42.0", default-features=false } +xattr = "0.2.3" +zip = { version = "0.6.3", default_features=false, features=["deflate"] } + uucore = { version=">=0.0.17", package="uucore", path="src/uucore" } -zip = { version = "0.6.3", optional=true, default_features=false, features=["deflate"] } +uucore_procs = { version=">=0.0.17", package="uucore_procs", path="src/uucore_procs" } +uu_ls = { version=">=0.0.17", path="src/uu/ls" } +uu_base32 = { version=">=0.0.17", path="src/uu/base32"} + +[dependencies] +clap = { workspace=true } +once_cell = { workspace=true } +uucore = { workspace=true } +clap_complete = { workspace=true } +phf = { workspace=true } +selinux = { workspace=true, optional = true } +textwrap = { workspace=true } +zip = { workspace=true, optional = true } + # * uutils uu_test = { optional=true, version="0.0.17", package="uu_test", path="src/uu/test" } # @@ -388,21 +461,21 @@ yes = { optional=true, version="0.0.17", package="uu_yes", path="src/uu/yes #pin_cc = { version="1.0.61, < 1.0.62", package="cc" } ## cc v1.0.62 has compiler errors for MinRustV v1.32.0, requires 1.34 (for `std::str::split_ascii_whitespace()`) [dev-dependencies] -chrono = { version="^0.4.23", default-features=false, features=["std", "alloc", "clock"]} +chrono = { workspace=true } conv = "0.3" -filetime = "0.2" -glob = "0.3.0" -libc = "0.2" +filetime = { workspace=true } +glob = { workspace=true } +libc = { workspace=true } pretty_assertions = "1" -rand = "0.8" -regex = "1.7" +rand = { workspace=true } +regex = { workspace=true } sha1 = { version="0.10", features=["std"] } -tempfile = "3" -time = {version="0.3", features=["local-offset"]} +tempfile = { workspace=true } +time = { workspace=true, features=["local-offset"] } unindent = "0.1" -uucore = { version=">=0.0.17", package="uucore", path="src/uucore", features=["entries", "process", "signals"] } -walkdir = "2.2" -atty = "0.2" +uucore = { workspace=true, features=["entries", "process", "signals"] } +walkdir = { workspace=true } +atty = { workspace=true } hex-literal = "0.3.1" rstest = "0.16.0" @@ -411,12 +484,12 @@ procfs = { version = "0.14", default-features = false } rlimit = "0.8.3" [target.'cfg(unix)'.dev-dependencies] -nix = { version = "0.26", default-features = false, features = ["process", "signal", "user"] } +nix = { workspace=true, features=["process", "signal", "user"] } rust-users = { version="0.11", package="users" } rand_pcg = "0.3" [build-dependencies] -phf_codegen = "0.11.1" +phf_codegen = { workspace=true } [[bin]] name = "coreutils" diff --git a/README.md b/README.md index 6c75db838..66a0395e9 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![dependency status](https://deps.rs/repo/github/uutils/coreutils/status.svg)](https://deps.rs/repo/github/uutils/coreutils) [![CodeCov](https://codecov.io/gh/uutils/coreutils/branch/master/graph/badge.svg)](https://codecov.io/gh/uutils/coreutils) -![MSRV](https://img.shields.io/badge/MSRV-1.60.0-brightgreen) +![MSRV](https://img.shields.io/badge/MSRV-1.64.0-brightgreen) ----------------------------------------------- @@ -52,7 +52,7 @@ Both can also be generated locally, the instructions for that can be found in th ### Rust Version uutils follows Rust's release channels and is tested against stable, beta and nightly. -The current Minimum Supported Rust Version (MSRV) is `1.60.0`. +The current Minimum Supported Rust Version (MSRV) is `1.64.0`. ## Building diff --git a/src/uu/arch/Cargo.toml b/src/uu/arch/Cargo.toml index 5cb68c14f..8e8712338 100644 --- a/src/uu/arch/Cargo.toml +++ b/src/uu/arch/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/arch.rs" [dependencies] -platform-info = "1.0.2" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +platform-info = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "arch" diff --git a/src/uu/base32/Cargo.toml b/src/uu/base32/Cargo.toml index 172ac6086..d71e71f95 100644 --- a/src/uu/base32/Cargo.toml +++ b/src/uu/base32/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/base32.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features = ["encoding"] } +clap = { workspace=true } +uucore = { workspace=true, features = ["encoding"] } [[bin]] name = "base32" diff --git a/src/uu/base64/Cargo.toml b/src/uu/base64/Cargo.toml index 790af595d..af92c70c2 100644 --- a/src/uu/base64/Cargo.toml +++ b/src/uu/base64/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/base64.rs" [dependencies] -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features = ["encoding"] } -uu_base32 = { version=">=0.0.17", package="uu_base32", path="../base32"} +uucore = { workspace=true, features = ["encoding"] } +uu_base32 = { workspace=true } [[bin]] name = "base64" diff --git a/src/uu/basename/Cargo.toml b/src/uu/basename/Cargo.toml index ef326334d..7d8377de5 100644 --- a/src/uu/basename/Cargo.toml +++ b/src/uu/basename/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/basename.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "basename" diff --git a/src/uu/basenc/Cargo.toml b/src/uu/basenc/Cargo.toml index b98b3ac9d..e6babef76 100644 --- a/src/uu/basenc/Cargo.toml +++ b/src/uu/basenc/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/basenc.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features = ["encoding"] } -uu_base32 = { version=">=0.0.17", package="uu_base32", path="../base32"} +clap = { workspace=true } +uucore = { workspace=true, features = ["encoding"] } +uu_base32 = { workspace=true } [[bin]] name = "basenc" diff --git a/src/uu/cat/Cargo.toml b/src/uu/cat/Cargo.toml index fda4bd1eb..e707c6db0 100644 --- a/src/uu/cat/Cargo.toml +++ b/src/uu/cat/Cargo.toml @@ -15,13 +15,13 @@ edition = "2021" path = "src/cat.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -thiserror = "1.0" -atty = "0.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs", "pipes"] } +clap = { workspace=true } +thiserror = { workspace = true } +atty = { workspace=true } +uucore = { workspace=true, features=["fs", "pipes"] } [target.'cfg(unix)'.dependencies] -nix = { version = "0.26", default-features = false } +nix = { workspace=true } [[bin]] name = "cat" diff --git a/src/uu/chcon/Cargo.toml b/src/uu/chcon/Cargo.toml index a90308af4..2e28aa29e 100644 --- a/src/uu/chcon/Cargo.toml +++ b/src/uu/chcon/Cargo.toml @@ -14,12 +14,12 @@ edition = "2021" path = "src/chcon.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version = ">=0.0.9", package="uucore", path="../../uucore", features=["entries", "fs", "perms"] } -selinux = { version = "0.3" } -fts-sys = { version = "0.2" } -thiserror = { version = "1.0" } -libc = { version = "0.2" } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "fs", "perms"] } +selinux = { workspace=true } +thiserror = { workspace = true } +libc = { workspace=true } +fts-sys = { workspace=true } [[bin]] name = "chcon" diff --git a/src/uu/chgrp/Cargo.toml b/src/uu/chgrp/Cargo.toml index de00ba951..164a30e20 100644 --- a/src/uu/chgrp/Cargo.toml +++ b/src/uu/chgrp/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/chgrp.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "fs", "perms"] } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "fs", "perms"] } [[bin]] name = "chgrp" diff --git a/src/uu/chmod/Cargo.toml b/src/uu/chmod/Cargo.toml index 52335e13a..833067208 100644 --- a/src/uu/chmod/Cargo.toml +++ b/src/uu/chmod/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/chmod.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs", "mode"] } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true, features=["fs", "mode"] } [[bin]] name = "chmod" diff --git a/src/uu/chown/Cargo.toml b/src/uu/chown/Cargo.toml index 79aa2e4c2..9ff43b006 100644 --- a/src/uu/chown/Cargo.toml +++ b/src/uu/chown/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/chown.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "fs", "perms"] } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "fs", "perms"] } [[bin]] name = "chown" diff --git a/src/uu/chroot/Cargo.toml b/src/uu/chroot/Cargo.toml index 4a44f9eaa..0cae53110 100644 --- a/src/uu/chroot/Cargo.toml +++ b/src/uu/chroot/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/chroot.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "fs"] } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "fs"] } [[bin]] name = "chroot" diff --git a/src/uu/cksum/Cargo.toml b/src/uu/cksum/Cargo.toml index 52c7dd7cb..4719af074 100644 --- a/src/uu/cksum/Cargo.toml +++ b/src/uu/cksum/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/cksum.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "cksum" diff --git a/src/uu/comm/Cargo.toml b/src/uu/comm/Cargo.toml index eec6711bb..fbe28903f 100644 --- a/src/uu/comm/Cargo.toml +++ b/src/uu/comm/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/comm.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "comm" diff --git a/src/uu/cp/Cargo.toml b/src/uu/cp/Cargo.toml index 03477e287..4aa871185 100644 --- a/src/uu/cp/Cargo.toml +++ b/src/uu/cp/Cargo.toml @@ -19,18 +19,18 @@ edition = "2021" path = "src/cp.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -filetime = "0.2" -libc = "0.2.137" -quick-error = "2.0.1" -selinux = { version="0.3", optional=true } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "fs", "perms", "mode"] } -walkdir = "2.2" -indicatif = "0.17" +clap = { workspace=true } +filetime = { workspace=true } +libc = { workspace=true } +quick-error = { workspace=true } +selinux = { workspace=true, optional=true } +uucore = { workspace=true, features=["entries", "fs", "perms", "mode"] } +walkdir = { workspace=true } +indicatif = { workspace=true } [target.'cfg(unix)'.dependencies] -xattr="0.2.3" -exacl= { version = "0.9.0", optional=true } +xattr = { workspace=true } +exacl = { workspace=true, optional=true } [[bin]] name = "cp" diff --git a/src/uu/csplit/Cargo.toml b/src/uu/csplit/Cargo.toml index 235fcfd2c..62b43c10e 100644 --- a/src/uu/csplit/Cargo.toml +++ b/src/uu/csplit/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/csplit.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -thiserror = "1.0" -regex = "1.7.1" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "fs"] } +clap = { workspace=true } +thiserror = { workspace = true } +regex = { workspace=true } +uucore = { workspace=true, features=["entries", "fs"] } [[bin]] name = "csplit" diff --git a/src/uu/cut/Cargo.toml b/src/uu/cut/Cargo.toml index 9a4a0b950..f680b67e5 100644 --- a/src/uu/cut/Cargo.toml +++ b/src/uu/cut/Cargo.toml @@ -15,11 +15,11 @@ edition = "2021" path = "src/cut.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } -memchr = "2" -bstr = "1.0" -atty = "0.2" +clap = { workspace=true } +uucore = { workspace=true } +memchr = { workspace=true } +bstr = { workspace=true } +atty = { workspace=true } [[bin]] name = "cut" diff --git a/src/uu/date/Cargo.toml b/src/uu/date/Cargo.toml index 0bedeabb9..cd7c50513 100644 --- a/src/uu/date/Cargo.toml +++ b/src/uu/date/Cargo.toml @@ -15,15 +15,15 @@ edition = "2021" path = "src/date.rs" [dependencies] -chrono = { version="^0.4.23", default-features=false, features=["std", "alloc", "clock"]} -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +chrono = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true } [target.'cfg(unix)'.dependencies] -libc = "0.2" +libc = { workspace=true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_Foundation", "Win32_System_SystemInformation"] } +windows-sys = { workspace=true, features = ["Win32_Foundation", "Win32_System_SystemInformation"] } [[bin]] name = "date" diff --git a/src/uu/dd/Cargo.toml b/src/uu/dd/Cargo.toml index b269c6990..1cc813bc9 100644 --- a/src/uu/dd/Cargo.toml +++ b/src/uu/dd/Cargo.toml @@ -15,13 +15,13 @@ edition = "2021" path = "src/dd.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -gcd = "2.2" -libc = "0.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +gcd = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true } [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] -signal-hook = "0.3.14" +signal-hook = { workspace=true } [[bin]] name = "dd" diff --git a/src/uu/df/Cargo.toml b/src/uu/df/Cargo.toml index 0a229415c..83ae2ae14 100644 --- a/src/uu/df/Cargo.toml +++ b/src/uu/df/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/df.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["libc", "fsext"] } -unicode-width = "0.1.9" +clap = { workspace=true } +uucore = { workspace=true, features=["libc", "fsext"] } +unicode-width = { workspace=true } [[bin]] name = "df" diff --git a/src/uu/df/src/df.rs b/src/uu/df/src/df.rs index b3692f481..c501b0bab 100644 --- a/src/uu/df/src/df.rs +++ b/src/uu/df/src/df.rs @@ -240,7 +240,7 @@ impl Options { } } - (!intersected_types.is_empty()).then(|| intersected_types) + (!intersected_types.is_empty()).then_some(intersected_types) } } diff --git a/src/uu/dir/Cargo.toml b/src/uu/dir/Cargo.toml index 09746b94c..03235fdfc 100644 --- a/src/uu/dir/Cargo.toml +++ b/src/uu/dir/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/dir.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo", "env"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "fs"] } -uu_ls = { version = ">=0.0.17", path="../ls"} +clap = { workspace=true, features = ["env"] } +uucore = { workspace=true, features=["entries", "fs"] } +uu_ls = { workspace=true } [[bin]] name = "dir" diff --git a/src/uu/dircolors/Cargo.toml b/src/uu/dircolors/Cargo.toml index 434b22d3a..9a3479426 100644 --- a/src/uu/dircolors/Cargo.toml +++ b/src/uu/dircolors/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/dircolors.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "dircolors" diff --git a/src/uu/dirname/Cargo.toml b/src/uu/dirname/Cargo.toml index 9a23d50b9..1186a4697 100644 --- a/src/uu/dirname/Cargo.toml +++ b/src/uu/dirname/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/dirname.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "dirname" diff --git a/src/uu/du/Cargo.toml b/src/uu/du/Cargo.toml index 57855b886..a8e8aead5 100644 --- a/src/uu/du/Cargo.toml +++ b/src/uu/du/Cargo.toml @@ -15,14 +15,14 @@ edition = "2021" path = "src/du.rs" [dependencies] -chrono = { version="^0.4.23", default-features=false, features=["std", "alloc", "clock"]} +chrono = { workspace=true } # For the --exclude & --exclude-from options -glob = "0.3.0" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +glob = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true } [target.'cfg(target_os = "windows")'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] } +windows-sys = { workspace=true, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] } [[bin]] name = "du" diff --git a/src/uu/echo/Cargo.toml b/src/uu/echo/Cargo.toml index a241c1427..0ae385cbe 100644 --- a/src/uu/echo/Cargo.toml +++ b/src/uu/echo/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/echo.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "echo" diff --git a/src/uu/env/Cargo.toml b/src/uu/env/Cargo.toml index 1ac3cf6af..b2224c405 100644 --- a/src/uu/env/Cargo.toml +++ b/src/uu/env/Cargo.toml @@ -15,12 +15,12 @@ edition = "2021" path = "src/env.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -rust-ini = "0.18.0" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["signals"]} +clap = { workspace=true } +rust-ini = { workspace=true } +uucore = { workspace=true, features=["signals"]} [target.'cfg(unix)'.dependencies] -nix = { version = "0.26", default-features = false, features = ["signal"] } +nix = { workspace=true, features = ["signal"] } [[bin]] diff --git a/src/uu/expand/Cargo.toml b/src/uu/expand/Cargo.toml index cac1f173f..362ed5a3a 100644 --- a/src/uu/expand/Cargo.toml +++ b/src/uu/expand/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/expand.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -unicode-width = "0.1.5" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +unicode-width = { workspace=true } +uucore = { workspace=true } [[bin]] name = "expand" diff --git a/src/uu/expr/Cargo.toml b/src/uu/expr/Cargo.toml index 18de38a7c..4ee2b5b1a 100644 --- a/src/uu/expr/Cargo.toml +++ b/src/uu/expr/Cargo.toml @@ -15,11 +15,11 @@ edition = "2021" path = "src/expr.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -num-bigint = "0.4.0" -num-traits = "0.2.15" -onig = { version = "~6.4", default-features = false } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +num-bigint = { workspace=true } +num-traits = { workspace=true } +onig = { workspace=true } +uucore = { workspace=true } [[bin]] name = "expr" diff --git a/src/uu/factor/Cargo.toml b/src/uu/factor/Cargo.toml index 06175a515..73be80738 100644 --- a/src/uu/factor/Cargo.toml +++ b/src/uu/factor/Cargo.toml @@ -12,15 +12,15 @@ categories = ["command-line-utilities"] edition = "2021" [build-dependencies] -num-traits = "0.2.15" # used in src/numerics.rs, which is included by build.rs +num-traits = { workspace=true } # used in src/numerics.rs, which is included by build.rs [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -coz = { version = "0.1.3", optional = true } -num-traits = "0.2.15" # Needs at least version 0.2.15 for "OverflowingAdd" -rand = { version = "0.8", features = ["small_rng"] } -smallvec = { version = "1.10", features = ["union"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +coz = { workspace=true, optional = true } +num-traits = { workspace=true } +rand = { workspace=true } +smallvec = { workspace=true } +uucore = { workspace=true } [dev-dependencies] paste = "1.0.6" diff --git a/src/uu/false/Cargo.toml b/src/uu/false/Cargo.toml index 848d872aa..1bd0bc260 100644 --- a/src/uu/false/Cargo.toml +++ b/src/uu/false/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/false.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "false" diff --git a/src/uu/fmt/Cargo.toml b/src/uu/fmt/Cargo.toml index 5f6449508..f37e9468a 100644 --- a/src/uu/fmt/Cargo.toml +++ b/src/uu/fmt/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/fmt.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -unicode-width = "0.1.5" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +unicode-width = { workspace=true } +uucore = { workspace=true } [[bin]] name = "fmt" diff --git a/src/uu/fold/Cargo.toml b/src/uu/fold/Cargo.toml index 44fe202f9..d3e4417e1 100644 --- a/src/uu/fold/Cargo.toml +++ b/src/uu/fold/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/fold.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "fold" diff --git a/src/uu/groups/Cargo.toml b/src/uu/groups/Cargo.toml index 3dec2ca9a..49034a4b3 100644 --- a/src/uu/groups/Cargo.toml +++ b/src/uu/groups/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/groups.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "process"] } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "process"] } [[bin]] name = "groups" diff --git a/src/uu/hashsum/Cargo.toml b/src/uu/hashsum/Cargo.toml index abc416e13..b037cbcb8 100644 --- a/src/uu/hashsum/Cargo.toml +++ b/src/uu/hashsum/Cargo.toml @@ -16,17 +16,17 @@ path = "src/hashsum.rs" [dependencies] digest = "0.10.6" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } +clap = { workspace=true } hex = "0.4.3" -memchr = "2" +memchr = { workspace=true } md-5 = "0.10.5" -regex = "1.7.1" +regex = { workspace=true } sha1 = "0.10.1" sha2 = "0.10.2" sha3 = "0.10.6" blake2b_simd = "1.0.1" blake3 = "1.3.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +uucore = { workspace=true } [[bin]] name = "hashsum" diff --git a/src/uu/head/Cargo.toml b/src/uu/head/Cargo.toml index 3a4dd42f2..c631cf331 100644 --- a/src/uu/head/Cargo.toml +++ b/src/uu/head/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/head.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -memchr = "2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["ringbuffer", "lines"] } +clap = { workspace=true } +memchr = { workspace=true } +uucore = { workspace=true, features=["ringbuffer", "lines"] } [[bin]] name = "head" diff --git a/src/uu/hostid/Cargo.toml b/src/uu/hostid/Cargo.toml index 348e35723..7aa28328a 100644 --- a/src/uu/hostid/Cargo.toml +++ b/src/uu/hostid/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/hostid.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true } [[bin]] name = "hostid" diff --git a/src/uu/hostname/Cargo.toml b/src/uu/hostname/Cargo.toml index e4df40263..e57e5c364 100644 --- a/src/uu/hostname/Cargo.toml +++ b/src/uu/hostname/Cargo.toml @@ -15,12 +15,12 @@ edition = "2021" path = "src/hostname.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } +clap = { workspace=true } hostname = { version = "0.3", features = ["set"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["wide"] } +uucore = { workspace=true, features=["wide"] } [target.'cfg(target_os = "windows")'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_Networking_WinSock", "Win32_Foundation"] } +windows-sys = { workspace=true, features = ["Win32_Networking_WinSock", "Win32_Foundation"] } [[bin]] name = "hostname" diff --git a/src/uu/id/Cargo.toml b/src/uu/id/Cargo.toml index 4437b4898..3a157ada4 100644 --- a/src/uu/id/Cargo.toml +++ b/src/uu/id/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/id.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "process"] } -selinux = { version="0.3", optional = true } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "process"] } +selinux = { workspace=true, optional=true } [[bin]] name = "id" diff --git a/src/uu/install/Cargo.toml b/src/uu/install/Cargo.toml index b51f2bbd2..0890fe8c9 100644 --- a/src/uu/install/Cargo.toml +++ b/src/uu/install/Cargo.toml @@ -18,14 +18,14 @@ edition = "2021" path = "src/install.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -filetime = "0.2" -file_diff = "1.0.0" -libc = ">= 0.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs", "mode", "perms", "entries"] } +clap = { workspace=true } +filetime = { workspace=true } +file_diff = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true, features=["fs", "mode", "perms", "entries"] } [dev-dependencies] -time = "0.3" +time = { workspace=true } [[bin]] name = "install" diff --git a/src/uu/join/Cargo.toml b/src/uu/join/Cargo.toml index 3b8231185..5be4af1a7 100644 --- a/src/uu/join/Cargo.toml +++ b/src/uu/join/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/join.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } -memchr = "2" +clap = { workspace=true } +uucore = { workspace=true } +memchr = { workspace=true } [[bin]] name = "join" diff --git a/src/uu/kill/Cargo.toml b/src/uu/kill/Cargo.toml index c3855978f..817190083 100644 --- a/src/uu/kill/Cargo.toml +++ b/src/uu/kill/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/kill.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -nix = { version = "0.26", features = ["signal"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["signals"] } +clap = { workspace=true } +nix = { workspace=true, features = ["signal"] } +uucore = { workspace=true, features=["signals"] } [[bin]] name = "kill" diff --git a/src/uu/link/Cargo.toml b/src/uu/link/Cargo.toml index 5a8984f1f..e35e23cfc 100644 --- a/src/uu/link/Cargo.toml +++ b/src/uu/link/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/link.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "link" diff --git a/src/uu/ln/Cargo.toml b/src/uu/ln/Cargo.toml index 2f07c8c4d..f08f04e41 100644 --- a/src/uu/ln/Cargo.toml +++ b/src/uu/ln/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/ln.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "ln" diff --git a/src/uu/logname/Cargo.toml b/src/uu/logname/Cargo.toml index a75e5efa7..18ecdc9ab 100644 --- a/src/uu/logname/Cargo.toml +++ b/src/uu/logname/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/logname.rs" [dependencies] -libc = "0.2.137" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +libc = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "logname" diff --git a/src/uu/ls/Cargo.toml b/src/uu/ls/Cargo.toml index c68c6b5ae..ade9c5e29 100644 --- a/src/uu/ls/Cargo.toml +++ b/src/uu/ls/Cargo.toml @@ -15,18 +15,18 @@ edition = "2021" path = "src/ls.rs" [dependencies] -chrono = { version="^0.4.23", default-features=false, features=["std", "alloc", "clock"]} -clap = { version = "4.0", features = ["wrap_help", "cargo", "env"] } -unicode-width = "0.1.8" -number_prefix = "0.4" -term_grid = "0.1.5" -terminal_size = "0.2.2" -glob = "0.3.0" -lscolors = { version = "0.13.0", default-features=false, features = ["nu-ansi-term"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features = ["entries", "fs"] } -once_cell = "1.13.1" -atty = "0.2" -selinux = { version="0.3", optional = true } +clap = { workspace=true, features = ["env"] } +chrono = { workspace=true } +unicode-width = { workspace=true } +number_prefix = { workspace=true } +term_grid = { workspace=true } +terminal_size = { workspace=true } +glob = { workspace=true } +lscolors = { workspace=true } +uucore = { workspace=true, features = ["entries", "fs"] } +once_cell = { workspace=true } +atty = { workspace=true } +selinux = { workspace=true, optional = true } [[bin]] name = "ls" diff --git a/src/uu/mkdir/Cargo.toml b/src/uu/mkdir/Cargo.toml index 93aaea73f..b8bc1dddf 100644 --- a/src/uu/mkdir/Cargo.toml +++ b/src/uu/mkdir/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/mkdir.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs", "mode"] } +clap = { workspace=true } +uucore = { workspace=true, features=["fs", "mode"] } [[bin]] name = "mkdir" diff --git a/src/uu/mkfifo/Cargo.toml b/src/uu/mkfifo/Cargo.toml index 0fc9cad74..9ffe3c765 100644 --- a/src/uu/mkfifo/Cargo.toml +++ b/src/uu/mkfifo/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/mkfifo.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true } [[bin]] name = "mkfifo" diff --git a/src/uu/mknod/Cargo.toml b/src/uu/mknod/Cargo.toml index 8fbcc0777..b74ed3b46 100644 --- a/src/uu/mknod/Cargo.toml +++ b/src/uu/mknod/Cargo.toml @@ -16,9 +16,9 @@ name = "uu_mknod" path = "src/mknod.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "^0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["mode"] } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true, features=["mode"] } [[bin]] name = "mknod" diff --git a/src/uu/mktemp/Cargo.toml b/src/uu/mktemp/Cargo.toml index d00fb4c05..029e89bc9 100644 --- a/src/uu/mktemp/Cargo.toml +++ b/src/uu/mktemp/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/mktemp.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -rand = "0.8" -tempfile = "3" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +rand = { workspace=true } +tempfile = { workspace=true } +uucore = { workspace=true } [[bin]] name = "mktemp" diff --git a/src/uu/more/Cargo.toml b/src/uu/more/Cargo.toml index c0023924f..416a2359b 100644 --- a/src/uu/more/Cargo.toml +++ b/src/uu/more/Cargo.toml @@ -15,15 +15,15 @@ edition = "2021" path = "src/more.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } -crossterm = ">=0.19" -atty = "0.2" -unicode-width = "0.1.7" -unicode-segmentation = "1.9.0" +clap = { workspace=true } +uucore = { workspace=true } +crossterm = { workspace=true } +atty = { workspace=true } +unicode-width = { workspace=true } +unicode-segmentation = { workspace=true } [target.'cfg(all(unix, not(target_os = "fuchsia")))'.dependencies] -nix = { version = "0.26", default-features = false } +nix = { workspace=true } [[bin]] name = "more" diff --git a/src/uu/mv/Cargo.toml b/src/uu/mv/Cargo.toml index 7ef274153..87ce36c5f 100644 --- a/src/uu/mv/Cargo.toml +++ b/src/uu/mv/Cargo.toml @@ -15,11 +15,10 @@ edition = "2021" path = "src/mv.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -fs_extra = "1.1.0" -indicatif = "0.17" - -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +fs_extra = { workspace=true } +indicatif = { workspace=true } +uucore = { workspace=true } [[bin]] name = "mv" diff --git a/src/uu/nice/Cargo.toml b/src/uu/nice/Cargo.toml index 857036498..054daf273 100644 --- a/src/uu/nice/Cargo.toml +++ b/src/uu/nice/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/nice.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -nix = { version = "0.26", default-features = false } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +libc = { workspace=true } +nix = { workspace=true } +uucore = { workspace=true } [[bin]] name = "nice" diff --git a/src/uu/nl/Cargo.toml b/src/uu/nl/Cargo.toml index aa1ae9b06..5dd539db8 100644 --- a/src/uu/nl/Cargo.toml +++ b/src/uu/nl/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/nl.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -regex = "1.7.1" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +regex = { workspace=true } +uucore = { workspace=true } [[bin]] name = "nl" diff --git a/src/uu/nohup/Cargo.toml b/src/uu/nohup/Cargo.toml index 4ad495245..9a6b4af43 100644 --- a/src/uu/nohup/Cargo.toml +++ b/src/uu/nohup/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/nohup.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -atty = "0.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +libc = { workspace=true } +atty = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "nohup" diff --git a/src/uu/nproc/Cargo.toml b/src/uu/nproc/Cargo.toml index c720990b4..dc51d8a55 100644 --- a/src/uu/nproc/Cargo.toml +++ b/src/uu/nproc/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/nproc.rs" [dependencies] -libc = "0.2.137" -num_cpus = "1.14" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +libc = { workspace=true } +num_cpus = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "nproc" diff --git a/src/uu/numfmt/Cargo.toml b/src/uu/numfmt/Cargo.toml index c6358bd6f..2e68cbab2 100644 --- a/src/uu/numfmt/Cargo.toml +++ b/src/uu/numfmt/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/numfmt.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "numfmt" diff --git a/src/uu/od/Cargo.toml b/src/uu/od/Cargo.toml index 827436354..c2bc93731 100644 --- a/src/uu/od/Cargo.toml +++ b/src/uu/od/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/od.rs" [dependencies] -byteorder = "1.3.2" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -half = "2.1" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +byteorder = { workspace=true } +clap = { workspace=true } +half = { workspace=true } +uucore = { workspace=true } [[bin]] name = "od" diff --git a/src/uu/paste/Cargo.toml b/src/uu/paste/Cargo.toml index 4012f14ff..aa1f5fe90 100644 --- a/src/uu/paste/Cargo.toml +++ b/src/uu/paste/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/paste.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "paste" diff --git a/src/uu/pathchk/Cargo.toml b/src/uu/pathchk/Cargo.toml index f8a203a3f..134f5bb5d 100644 --- a/src/uu/pathchk/Cargo.toml +++ b/src/uu/pathchk/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/pathchk.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true } [[bin]] name = "pathchk" diff --git a/src/uu/pinky/Cargo.toml b/src/uu/pinky/Cargo.toml index 136ab48fc..a9abee40b 100644 --- a/src/uu/pinky/Cargo.toml +++ b/src/uu/pinky/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/pinky.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["utmpx", "entries"] } +clap = { workspace=true } +uucore = { workspace=true, features=["utmpx", "entries"] } [[bin]] name = "pinky" diff --git a/src/uu/pr/Cargo.toml b/src/uu/pr/Cargo.toml index 310ce07a2..773a71b7f 100644 --- a/src/uu/pr/Cargo.toml +++ b/src/uu/pr/Cargo.toml @@ -15,12 +15,12 @@ edition = "2021" path = "src/pr.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -time = { version = "0.3", features = ["local-offset", "macros", "formatting"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries"] } -quick-error = "2.0.1" -itertools = "0.10.0" -regex = "1.7" +clap = { workspace=true } +time = { workspace=true, features = ["local-offset", "macros", "formatting"] } +uucore = { workspace=true, features=["entries"] } +quick-error = { workspace=true } +itertools = { workspace=true } +regex = { workspace=true } [[bin]] name = "pr" diff --git a/src/uu/printenv/Cargo.toml b/src/uu/printenv/Cargo.toml index b81c3906d..7f179e411 100644 --- a/src/uu/printenv/Cargo.toml +++ b/src/uu/printenv/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/printenv.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "printenv" diff --git a/src/uu/printf/Cargo.toml b/src/uu/printf/Cargo.toml index 548641b76..ffb266f18 100644 --- a/src/uu/printf/Cargo.toml +++ b/src/uu/printf/Cargo.toml @@ -18,8 +18,8 @@ edition = "2021" path = "src/printf.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["memo"] } +clap = { workspace=true } +uucore = { workspace=true, features=["memo"] } [[bin]] name = "printf" diff --git a/src/uu/ptx/Cargo.toml b/src/uu/ptx/Cargo.toml index f7bfa152a..1cb2857d3 100644 --- a/src/uu/ptx/Cargo.toml +++ b/src/uu/ptx/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/ptx.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -regex = "1.7.1" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +regex = { workspace=true } +uucore = { workspace=true } [[bin]] name = "ptx" diff --git a/src/uu/pwd/Cargo.toml b/src/uu/pwd/Cargo.toml index 1886ddeac..2be204608 100644 --- a/src/uu/pwd/Cargo.toml +++ b/src/uu/pwd/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/pwd.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "pwd" diff --git a/src/uu/readlink/Cargo.toml b/src/uu/readlink/Cargo.toml index a7a28b1d6..59acd7731 100644 --- a/src/uu/readlink/Cargo.toml +++ b/src/uu/readlink/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/readlink.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "readlink" diff --git a/src/uu/realpath/Cargo.toml b/src/uu/realpath/Cargo.toml index a077778e4..cf23d60af 100644 --- a/src/uu/realpath/Cargo.toml +++ b/src/uu/realpath/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/realpath.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "realpath" diff --git a/src/uu/relpath/Cargo.toml b/src/uu/relpath/Cargo.toml index c37e98d86..99e37f5f8 100644 --- a/src/uu/relpath/Cargo.toml +++ b/src/uu/relpath/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/relpath.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "relpath" diff --git a/src/uu/rm/Cargo.toml b/src/uu/rm/Cargo.toml index 5952d7867..af63aee78 100644 --- a/src/uu/rm/Cargo.toml +++ b/src/uu/rm/Cargo.toml @@ -15,15 +15,15 @@ edition = "2021" path = "src/rm.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -walkdir = "2.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +walkdir = { workspace=true } +uucore = { workspace=true, features=["fs"] } [target.'cfg(unix)'.dependencies] -libc = "0.2.137" +libc = { workspace=true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_Storage_FileSystem"] } +windows-sys = { workspace=true, features = ["Win32_Storage_FileSystem"] } [[bin]] name = "rm" diff --git a/src/uu/rmdir/Cargo.toml b/src/uu/rmdir/Cargo.toml index e804f7fa5..6e6bbcb15 100644 --- a/src/uu/rmdir/Cargo.toml +++ b/src/uu/rmdir/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/rmdir.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } -libc = "0.2.137" +clap = { workspace=true } +uucore = { workspace=true, features=["fs"] } +libc = { workspace=true } [[bin]] name = "rmdir" diff --git a/src/uu/runcon/Cargo.toml b/src/uu/runcon/Cargo.toml index 74fcdf2cf..46d565223 100644 --- a/src/uu/runcon/Cargo.toml +++ b/src/uu/runcon/Cargo.toml @@ -14,11 +14,11 @@ edition = "2021" path = "src/runcon.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version = ">=0.0.9", package="uucore", path="../../uucore", features=["entries", "fs", "perms"] } -selinux = { version = "0.3" } -thiserror = { version = "1.0" } -libc = { version = "0.2" } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "fs", "perms"] } +selinux = { workspace=true } +thiserror = { workspace=true } +libc = { workspace=true } [[bin]] name = "runcon" diff --git a/src/uu/seq/Cargo.toml b/src/uu/seq/Cargo.toml index 07f88fb00..d8c861aae 100644 --- a/src/uu/seq/Cargo.toml +++ b/src/uu/seq/Cargo.toml @@ -16,11 +16,11 @@ edition = "2021" path = "src/seq.rs" [dependencies] -bigdecimal = "0.3" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -num-bigint = "0.4.0" -num-traits = "0.2.15" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["memo"] } +bigdecimal = { workspace=true } +clap = { workspace=true } +num-bigint = { workspace=true } +num-traits = { workspace=true } +uucore = { workspace=true, features=["memo"] } [[bin]] name = "seq" diff --git a/src/uu/shred/Cargo.toml b/src/uu/shred/Cargo.toml index 957abf766..94a741bb3 100644 --- a/src/uu/shred/Cargo.toml +++ b/src/uu/shred/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/shred.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -rand = "0.8" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +rand = { workspace=true } +uucore = { workspace=true } [[bin]] name = "shred" diff --git a/src/uu/shuf/Cargo.toml b/src/uu/shuf/Cargo.toml index 98159b8c3..eed9065c7 100644 --- a/src/uu/shuf/Cargo.toml +++ b/src/uu/shuf/Cargo.toml @@ -15,11 +15,11 @@ edition = "2021" path = "src/shuf.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -memchr = "2.5.0" -rand = "0.8" -rand_core = "0.6" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +memchr = { workspace=true } +rand = { workspace=true } +rand_core = { workspace=true } +uucore = { workspace=true } [[bin]] name = "shuf" diff --git a/src/uu/sleep/Cargo.toml b/src/uu/sleep/Cargo.toml index 8c21c895e..048f551c1 100644 --- a/src/uu/sleep/Cargo.toml +++ b/src/uu/sleep/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/sleep.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "sleep" diff --git a/src/uu/sort/Cargo.toml b/src/uu/sort/Cargo.toml index d12dd57cf..e940d08e5 100644 --- a/src/uu/sort/Cargo.toml +++ b/src/uu/sort/Cargo.toml @@ -15,19 +15,19 @@ edition = "2021" path = "src/sort.rs" [dependencies] -binary-heap-plus = "0.5.0" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -compare = "0.1.0" -ctrlc = { version = "3.0", features = ["termination"] } -fnv = "1.0.7" -itertools = "0.10.0" -memchr = "2.5.0" -ouroboros = "0.15.5" -rand = "0.8" -rayon = "1.5" -tempfile = "3" -unicode-width = "0.1.8" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +binary-heap-plus = { workspace=true } +clap = { workspace=true } +compare = { workspace=true } +ctrlc = { workspace=true } +fnv = { workspace=true } +itertools = { workspace=true } +memchr = { workspace=true } +ouroboros = { workspace=true } +rand = { workspace=true } +rayon = { workspace=true } +tempfile = { workspace=true } +unicode-width = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "sort" diff --git a/src/uu/split/Cargo.toml b/src/uu/split/Cargo.toml index 9d5a9e3ba..2d379a373 100644 --- a/src/uu/split/Cargo.toml +++ b/src/uu/split/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/split.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -memchr = "2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +memchr = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "split" diff --git a/src/uu/stat/Cargo.toml b/src/uu/stat/Cargo.toml index 2f32abc51..1c84eaf1e 100644 --- a/src/uu/stat/Cargo.toml +++ b/src/uu/stat/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/stat.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "libc", "fs", "fsext"] } +clap = { workspace=true } +uucore = { workspace=true, features=["entries", "libc", "fs", "fsext"] } [[bin]] name = "stat" diff --git a/src/uu/stdbuf/Cargo.toml b/src/uu/stdbuf/Cargo.toml index aad0d29e1..164188f9f 100644 --- a/src/uu/stdbuf/Cargo.toml +++ b/src/uu/stdbuf/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/stdbuf.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -tempfile = "3" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +tempfile = { workspace=true } +uucore = { workspace=true } [build-dependencies] libstdbuf = { version="0.0.17", package="uu_stdbuf_libstdbuf", path="src/libstdbuf" } diff --git a/src/uu/stdbuf/src/libstdbuf/Cargo.toml b/src/uu/stdbuf/src/libstdbuf/Cargo.toml index c40f3aa86..2498f7671 100644 --- a/src/uu/stdbuf/src/libstdbuf/Cargo.toml +++ b/src/uu/stdbuf/src/libstdbuf/Cargo.toml @@ -18,7 +18,7 @@ crate-type = ["cdylib", "rlib"] # XXX: note: the rlib is just to prevent Cargo f [dependencies] cpp = "0.5" -libc = "0.2" +libc = { workspace=true } uucore = { version=">=0.0.17", package="uucore", path="../../../../uucore" } [build-dependencies] diff --git a/src/uu/stty/Cargo.toml b/src/uu/stty/Cargo.toml index b1e15427d..9c94f8cb1 100644 --- a/src/uu/stty/Cargo.toml +++ b/src/uu/stty/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/stty.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } -nix = { version="0.26", features = ["term"] } +clap = { workspace=true } +uucore = { workspace=true } +nix = { workspace=true, features = ["term", "ioctl"] } [[bin]] name = "stty" diff --git a/src/uu/sum/Cargo.toml b/src/uu/sum/Cargo.toml index bcc53d11c..0997f22fc 100644 --- a/src/uu/sum/Cargo.toml +++ b/src/uu/sum/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/sum.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "sum" diff --git a/src/uu/sync/Cargo.toml b/src/uu/sync/Cargo.toml index a7036f852..19696d881 100644 --- a/src/uu/sync/Cargo.toml +++ b/src/uu/sync/Cargo.toml @@ -15,15 +15,15 @@ edition = "2021" path = "src/sync.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["wide"] } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true, features=["wide"] } [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] -nix = "0.26" +nix = { workspace=true } [target.'cfg(target_os = "windows")'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_Storage_FileSystem", "Win32_System_WindowsProgramming", "Win32_Foundation"] } +windows-sys = { workspace=true, features = ["Win32_Storage_FileSystem", "Win32_System_WindowsProgramming", "Win32_Foundation"] } [[bin]] name = "sync" diff --git a/src/uu/tac/Cargo.toml b/src/uu/tac/Cargo.toml index 31a177e4a..3df365bad 100644 --- a/src/uu/tac/Cargo.toml +++ b/src/uu/tac/Cargo.toml @@ -17,11 +17,11 @@ edition = "2021" path = "src/tac.rs" [dependencies] -memchr = "2" +memchr = { workspace=true } memmap2 = "0.5" -regex = "1" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +regex = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "tac" diff --git a/src/uu/tail/Cargo.toml b/src/uu/tail/Cargo.toml index 6b00b4f3d..d6dbf2fb7 100644 --- a/src/uu/tail/Cargo.toml +++ b/src/uu/tail/Cargo.toml @@ -1,4 +1,3 @@ -# spell-checker:ignore (libs) kqueue [package] name = "uu_tail" version = "0.0.17" @@ -16,20 +15,20 @@ edition = "2021" path = "src/tail.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -memchr = "2.5.0" -notify = { version = "=5.0.0", features=["macos_kqueue"]} -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["ringbuffer", "lines"] } -same-file = "1.0.6" -atty = "0.2" +clap = { workspace=true } +libc = { workspace=true } +memchr = { workspace=true } +notify = { workspace=true } +uucore = { workspace=true, features=["ringbuffer", "lines"] } +same-file = { workspace=true } +atty = { workspace=true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_System_Threading", "Win32_Foundation"] } -winapi-util = { version="0.1.5" } +windows-sys = { workspace=true, features = ["Win32_System_Threading", "Win32_Foundation"] } +winapi-util = { workspace=true } [target.'cfg(unix)'.dependencies] -nix = { version = "0.26", features = ["fs"] } +nix = { workspace=true, features = ["fs"] } [[bin]] name = "tail" diff --git a/src/uu/tee/Cargo.toml b/src/uu/tee/Cargo.toml index 139e3df3c..52a2accea 100644 --- a/src/uu/tee/Cargo.toml +++ b/src/uu/tee/Cargo.toml @@ -15,10 +15,9 @@ edition = "2021" path = "src/tee.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -retain_mut = "=0.1.7" # ToDO: [2021-01-01; rivy; maint/MinSRV] ~ v0.1.5 uses const generics which aren't stabilized until rust v1.51.0 -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["libc"] } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true, features=["libc"] } [[bin]] name = "tee" diff --git a/src/uu/tee/src/tee.rs b/src/uu/tee/src/tee.rs index 67b16f843..71b5edc5c 100644 --- a/src/uu/tee/src/tee.rs +++ b/src/uu/tee/src/tee.rs @@ -6,7 +6,6 @@ // * file that was distributed with this source code. use clap::{builder::PossibleValue, crate_version, Arg, ArgAction, Command}; -use retain_mut::RetainMut; use std::fs::OpenOptions; use std::io::{copy, sink, stdin, stdout, Error, ErrorKind, Read, Result, Write}; use std::path::PathBuf; @@ -301,7 +300,7 @@ impl Write for MultiWriter { let mut aborted = None; let mode = self.output_error_mode.clone(); let mut errors = 0; - RetainMut::retain_mut(&mut self.writers, |writer| { + self.writers.retain_mut(|writer| { let result = writer.write_all(buf); match result { Err(f) => { @@ -332,7 +331,7 @@ impl Write for MultiWriter { let mut aborted = None; let mode = self.output_error_mode.clone(); let mut errors = 0; - RetainMut::retain_mut(&mut self.writers, |writer| { + self.writers.retain_mut(|writer| { let result = writer.flush(); match result { Err(f) => { diff --git a/src/uu/test/Cargo.toml b/src/uu/test/Cargo.toml index 396373f49..5e7d2e23a 100644 --- a/src/uu/test/Cargo.toml +++ b/src/uu/test/Cargo.toml @@ -15,12 +15,12 @@ edition = "2021" path = "src/test.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true } [target.'cfg(target_os = "redox")'.dependencies] -redox_syscall = "0.2" +redox_syscall = { workspace=true } [[bin]] name = "test" diff --git a/src/uu/timeout/Cargo.toml b/src/uu/timeout/Cargo.toml index 2422e669a..b19a2e999 100644 --- a/src/uu/timeout/Cargo.toml +++ b/src/uu/timeout/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/timeout.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -nix = { version = "0.26", default-features = false, features = ["signal"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["process", "signals"] } +clap = { workspace=true } +libc = { workspace=true } +nix = { workspace=true, features = ["signal"] } +uucore = { workspace=true, features=["process", "signals"] } [[bin]] name = "timeout" diff --git a/src/uu/touch/Cargo.toml b/src/uu/touch/Cargo.toml index 40ee899af..1fad22c02 100644 --- a/src/uu/touch/Cargo.toml +++ b/src/uu/touch/Cargo.toml @@ -15,13 +15,13 @@ edition = "2021" path = "src/touch.rs" [dependencies] -filetime = "0.2.18" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -time = { version = "0.3", features = ["parsing", "formatting", "local-offset", "macros"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["libc"] } +filetime = { workspace=true } +clap = { workspace=true } +time = { workspace=true, features = ["parsing", "formatting", "local-offset", "macros"] } +uucore = { workspace=true, features=["libc"] } [target.'cfg(target_os = "windows")'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] } +windows-sys = { workspace=true, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] } [[bin]] name = "touch" diff --git a/src/uu/tr/Cargo.toml b/src/uu/tr/Cargo.toml index 992423999..eee6c7cd6 100644 --- a/src/uu/tr/Cargo.toml +++ b/src/uu/tr/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/tr.rs" [dependencies] -nom = "7.1.1" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +nom = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "tr" diff --git a/src/uu/true/Cargo.toml b/src/uu/true/Cargo.toml index ef92d33a4..9954c2906 100644 --- a/src/uu/true/Cargo.toml +++ b/src/uu/true/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/true.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "true" diff --git a/src/uu/truncate/Cargo.toml b/src/uu/truncate/Cargo.toml index 919ab4fab..e93751e89 100644 --- a/src/uu/truncate/Cargo.toml +++ b/src/uu/truncate/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/truncate.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "truncate" diff --git a/src/uu/tsort/Cargo.toml b/src/uu/tsort/Cargo.toml index 63eeb111a..2737454eb 100644 --- a/src/uu/tsort/Cargo.toml +++ b/src/uu/tsort/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/tsort.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "tsort" diff --git a/src/uu/tty/Cargo.toml b/src/uu/tty/Cargo.toml index 484870e85..34eb84570 100644 --- a/src/uu/tty/Cargo.toml +++ b/src/uu/tty/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/tty.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -nix = "0.26" -atty = "0.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["fs"] } +clap = { workspace=true } +nix = { workspace=true, features=["term"] } +atty = { workspace=true } +uucore = { workspace=true, features=["fs"] } [[bin]] name = "tty" diff --git a/src/uu/uname/Cargo.toml b/src/uu/uname/Cargo.toml index bcd68f1e8..818e6dd06 100644 --- a/src/uu/uname/Cargo.toml +++ b/src/uu/uname/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/uname.rs" [dependencies] -platform-info = "1.0.2" -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +platform-info = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "uname" diff --git a/src/uu/unexpand/Cargo.toml b/src/uu/unexpand/Cargo.toml index bd858732e..a80bcdaf5 100644 --- a/src/uu/unexpand/Cargo.toml +++ b/src/uu/unexpand/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/unexpand.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -unicode-width = "0.1.5" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +unicode-width = { workspace=true } +uucore = { workspace=true } [[bin]] name = "unexpand" diff --git a/src/uu/uniq/Cargo.toml b/src/uu/uniq/Cargo.toml index 98432caf0..f1b615ea8 100644 --- a/src/uu/uniq/Cargo.toml +++ b/src/uu/uniq/Cargo.toml @@ -15,10 +15,10 @@ edition = "2021" path = "src/uniq.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -strum = "0.24.1" -strum_macros = "0.24.2" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +strum = { workspace=true } +strum_macros = { workspace=true } +uucore = { workspace=true } [[bin]] name = "uniq" diff --git a/src/uu/unlink/Cargo.toml b/src/uu/unlink/Cargo.toml index f63757fba..6b300dab0 100644 --- a/src/uu/unlink/Cargo.toml +++ b/src/uu/unlink/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/unlink.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore" } +clap = { workspace=true } +uucore = { workspace=true } [[bin]] name = "unlink" diff --git a/src/uu/uptime/Cargo.toml b/src/uu/uptime/Cargo.toml index 99d60c309..a38a030e8 100644 --- a/src/uu/uptime/Cargo.toml +++ b/src/uu/uptime/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/uptime.rs" [dependencies] -chrono = { version="^0.4.23", default-features=false, features=["std", "alloc", "clock"]} -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["libc", "utmpx"] } +chrono = { workspace=true } +clap = { workspace=true } +uucore = { workspace=true, features=["libc", "utmpx"] } [[bin]] name = "uptime" diff --git a/src/uu/users/Cargo.toml b/src/uu/users/Cargo.toml index 658c3c25a..32abd1581 100644 --- a/src/uu/users/Cargo.toml +++ b/src/uu/users/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/users.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["utmpx"] } +clap = { workspace=true } +uucore = { workspace=true, features=["utmpx"] } [[bin]] name = "users" diff --git a/src/uu/vdir/Cargo.toml b/src/uu/vdir/Cargo.toml index 9576770ab..569807af6 100644 --- a/src/uu/vdir/Cargo.toml +++ b/src/uu/vdir/Cargo.toml @@ -15,9 +15,9 @@ edition = "2021" path = "src/vdir.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo", "env"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries", "fs"] } -uu_ls = { version = ">=0.0.17", path="../ls"} +clap = { workspace=true, features = ["env"] } +uucore = { workspace=true, features=["entries", "fs"] } +uu_ls = { workspace=true } [[bin]] name = "vdir" diff --git a/src/uu/wc/Cargo.toml b/src/uu/wc/Cargo.toml index 060edf312..40e0fd03b 100644 --- a/src/uu/wc/Cargo.toml +++ b/src/uu/wc/Cargo.toml @@ -15,15 +15,15 @@ edition = "2021" path = "src/wc.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["pipes"] } -bytecount = "0.6.3" -utf-8 = "0.7.6" -unicode-width = "0.1.8" +clap = { workspace=true } +uucore = { workspace=true, features=["pipes"] } +bytecount = { workspace=true } +utf-8 = { workspace=true } +unicode-width = { workspace=true } [target.'cfg(unix)'.dependencies] -nix = { version = "0.26", default-features = false } -libc = "0.2" +nix = { workspace=true } +libc = { workspace=true } [[bin]] name = "wc" diff --git a/src/uu/who/Cargo.toml b/src/uu/who/Cargo.toml index cd1af860d..31c557508 100644 --- a/src/uu/who/Cargo.toml +++ b/src/uu/who/Cargo.toml @@ -15,8 +15,8 @@ edition = "2021" path = "src/who.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["utmpx"] } +clap = { workspace=true } +uucore = { workspace=true, features=["utmpx"] } [[bin]] name = "who" diff --git a/src/uu/whoami/Cargo.toml b/src/uu/whoami/Cargo.toml index 9d576453f..15a7ad4ce 100644 --- a/src/uu/whoami/Cargo.toml +++ b/src/uu/whoami/Cargo.toml @@ -15,14 +15,14 @@ edition = "2021" path = "src/whoami.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["entries"] } +clap = { workspace=true } +uucore = { workspace=true, features=["entries"] } [target.'cfg(target_os = "windows")'.dependencies] -windows-sys = { version = "0.42.0", default-features = false, features = ["Win32_NetworkManagement_NetManagement", "Win32_System_WindowsProgramming", "Win32_Foundation"] } +windows-sys = { workspace=true, features = ["Win32_NetworkManagement_NetManagement", "Win32_System_WindowsProgramming", "Win32_Foundation"] } [target.'cfg(unix)'.dependencies] -libc = "0.2.137" +libc = { workspace=true } [[bin]] name = "whoami" diff --git a/src/uu/yes/Cargo.toml b/src/uu/yes/Cargo.toml index 4ba10df3f..cf120f2e0 100644 --- a/src/uu/yes/Cargo.toml +++ b/src/uu/yes/Cargo.toml @@ -15,12 +15,12 @@ edition = "2021" path = "src/yes.rs" [dependencies] -clap = { version = "4.0", features = ["wrap_help", "cargo"] } -libc = "0.2.137" -uucore = { version=">=0.0.17", package="uucore", path="../../uucore", features=["pipes"] } +clap = { workspace=true } +libc = { workspace=true } +uucore = { workspace=true, features=["pipes"] } [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] -nix = { version = "0.26", default-features = false } +nix = { workspace=true } [[bin]] name = "yes" diff --git a/src/uucore/Cargo.toml b/src/uucore/Cargo.toml index 0f42a7941..d4d8b8cf2 100644 --- a/src/uucore/Cargo.toml +++ b/src/uucore/Cargo.toml @@ -18,31 +18,31 @@ edition = "2021" path="src/lib/lib.rs" [dependencies] -uucore_procs = { version=">=0.0.17", path="../uucore_procs" } -clap = "4.0" +clap = { workspace=true } +uucore_procs = { workspace=true } dns-lookup = { version="1.0.5", optional=true } dunce = "1.0.3" wild = "2.0" glob = "0.3.0" # * optional itertools = { version="0.10.0", optional=true } -thiserror = { version="1.0", optional=true } -time = { version="0.3", optional=true, features = ["formatting", "local-offset", "macros"] } +thiserror = { workspace=true, optional=true } +time = { workspace=true, optional=true, features = ["formatting", "local-offset", "macros"] } # * "problem" dependencies (pinned) data-encoding = { version="2.1", optional=true } data-encoding-macro = { version="0.1.12", optional=true } z85 = { version="3.0.5", optional=true } libc = { version="0.2.137", optional=true } -once_cell = "1.13.1" +once_cell = { workspace=true } os_display = "0.1.3" [target.'cfg(unix)'.dependencies] -walkdir = { version="2.3.2", optional=true } -nix = { version = "0.26", default-features = false, features = ["fs", "uio", "zerocopy"] } +walkdir = { workspace=true, optional=true } +nix = { workspace=true, features = ["fs", "uio", "zerocopy"] } [dev-dependencies] -clap = "4.0" -once_cell = "1.13" +clap = { workspace=true } +once_cell = { workspace=true } [target.'cfg(target_os = "windows")'.dependencies] winapi-util = { version= "0.1.5", optional=true } diff --git a/src/uucore/src/lib/features/memo.rs b/src/uucore/src/lib/features/memo.rs index 517efc9e2..47d04f5b8 100644 --- a/src/uucore/src/lib/features/memo.rs +++ b/src/uucore/src/lib/features/memo.rs @@ -154,7 +154,7 @@ mod tests { #[test] fn test_sprintf_smoke() { - assert_eq!(sprintf("", &[]).unwrap(), "".to_string()) + assert_eq!(sprintf("", &[]).unwrap(), "".to_string()); } #[test] @@ -162,7 +162,7 @@ mod tests { assert_eq!( sprintf("hello world", &[]).unwrap(), "hello world".to_string() - ) + ); } #[test] @@ -170,6 +170,6 @@ mod tests { assert_eq!( sprintf("hello %s", &["world".to_string()]).unwrap(), "hello world".to_string() - ) + ); } } diff --git a/src/uucore/src/lib/mods/error.rs b/src/uucore/src/lib/mods/error.rs index 8f1b2f3ec..5d4527d74 100644 --- a/src/uucore/src/lib/mods/error.rs +++ b/src/uucore/src/lib/mods/error.rs @@ -771,6 +771,6 @@ mod tests { .map_err_context(|| String::from("test")) .unwrap_err() .to_string() - ) + ); } }