Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSRV 1.64 & Workspace inheritance for dependencies #4344

Merged
merged 4 commits into from
Feb 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv = "1.60.0"
msrv = "1.64.0"
2 changes: 1 addition & 1 deletion .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 0 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 93 additions & 20 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -16,7 +16,7 @@ repository = "https:/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"
Expand Down Expand Up @@ -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" }
#
Expand Down Expand Up @@ -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"

Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

-----------------------------------------------

Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/uu/arch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/base32/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/base64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/basename/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/uu/basenc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions src/uu/cat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions src/uu/chcon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/chgrp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/uu/chmod/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/chown/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/chroot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/cksum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/uu/comm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading