Skip to content
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
12 changes: 6 additions & 6 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
# for now, don't build it on mac & windows because the doc is only published from linux
# + it needs a bunch of duplication for build
# and I don't want to add a doc step in the regular build to avoid long builds
# - { os: macos-latest , features: feat_os_macos }
# - { os: macos-latest , features: feat_os_unix }
# - { os: windows-latest , features: feat_os_windows }
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
matrix:
job:
- { os: ubuntu-latest , features: feat_os_unix }
- { os: macos-latest , features: feat_os_macos }
- { os: macos-latest , features: feat_os_unix }
- { os: windows-latest , features: feat_os_windows }
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
matrix:
job:
- { os: ubuntu-latest , features: feat_os_unix }
- { os: macos-latest , features: feat_os_macos }
- { os: macos-latest , features: feat_os_unix }
- { os: windows-latest , features: feat_os_windows }
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -381,10 +381,10 @@ jobs:
- { os: ubuntu-latest , target: x86_64-unknown-netbsd, features: "feat_os_unix", use-cross: use-cross , skip-tests: true , check-only: true }
- { os: ubuntu-latest , target: x86_64-unknown-redox , features: feat_os_unix_redox , use-cross: redoxer , skip-tests: true , check-only: true }
- { os: ubuntu-latest , target: wasm32-wasip1, default-features: false, features: feat_wasm, skip-tests: true }
- { os: macos-latest , target: aarch64-apple-darwin , features: feat_os_macos, workspace-tests: true } # M1 CPU
- { os: macos-latest , target: aarch64-apple-darwin , features: feat_os_unix, workspace-tests: true } # M1 CPU
# PR #7964: chcon should not break build without the feature. cargo check is enough to detect it.
- { os: macos-latest , target: aarch64-apple-darwin , workspace-tests: true, check-only: true } # M1 CPU
- { os: macos-latest , target: x86_64-apple-darwin , features: feat_os_macos, workspace-tests: true }
- { os: macos-latest , target: x86_64-apple-darwin , features: feat_os_unix, workspace-tests: true }
- { os: windows-latest , target: i686-pc-windows-msvc , features: feat_os_windows }
- { os: windows-latest , target: x86_64-pc-windows-gnu , features: feat_os_windows }
- { os: windows-latest , target: x86_64-pc-windows-msvc , features: feat_os_windows }
Expand Down Expand Up @@ -870,7 +870,7 @@ jobs:
fail-fast: false
matrix:
job:
- { os: macos-latest , features: feat_os_macos }
- { os: macos-latest , features: feat_os_unix }
- { os: windows-latest , features: feat_os_windows }

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
matrix:
job:
- { os: ubuntu-latest , features: all , workspace: true }
- { os: macos-latest , features: feat_os_macos }
- { os: macos-latest , features: feat_os_unix }
- { os: windows-latest , features: feat_os_windows }
steps:
- uses: actions/checkout@v6
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/l10n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
matrix:
job:
- { os: ubuntu-latest , features: "feat_os_unix" }
- { os: macos-latest , features: "feat_os_macos" }
- { os: macos-latest , features: "feat_os_unix" }
- { os: windows-latest , features: "feat_os_windows" }
steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -397,7 +397,7 @@ jobs:
matrix:
job:
- { os: ubuntu-latest , features: "feat_os_unix" }
- { os: macos-latest , features: "feat_os_macos" }
- { os: macos-latest , features: "feat_os_unix" }
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -550,7 +550,7 @@ jobs:
matrix:
job:
- { os: ubuntu-latest , features: "feat_os_unix" }
- { os: macos-latest , features: "feat_os_macos" }
- { os: macos-latest , features: "feat_os_unix" }
steps:
- uses: actions/checkout@v6
with:
Expand Down
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ all-features = true
[features]
default = ["feat_common_core"]
## OS feature shortcodes
macos = ["feat_os_macos"]
unix = ["feat_os_unix"]
windows = ["feat_os_windows"]
## project-specific feature shortcodes
Expand Down Expand Up @@ -230,10 +229,6 @@ feat_wasm = [
"arch",
"uname",
]
# "feat_os_macos" == set of utilities which can be built/run on the MacOS platform
feat_os_macos = [
"feat_os_unix", ## == a modern/usual *nix platform
]
# "feat_os_unix" == set of utilities which can be built/run on modern/usual *nix platforms.
feat_os_unix = [
"feat_Tier1",
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ sets of uutils for a platform (on that platform) is as simple as specifying it
as a feature:

```shell
cargo build --release --features macos
# or ...
cargo build --release --features windows
# or ...
cargo build --release --features unix
Expand Down
4 changes: 1 addition & 3 deletions docs/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ You can also [build uutils from source](build.md).
[![crates.io package](https://repology.org/badge/version-for-repo/crates_io/uutils-coreutils.svg)](https://crates.io/crates/coreutils)

```shell
# Linux
# Unix like
cargo install coreutils --features unix --locked
# MacOs
cargo install coreutils --features macos --locked
# Windows
cargo install coreutils --features windows --locked
```
Expand Down
2 changes: 1 addition & 1 deletion tests/by-util/test_chown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ fn test_chown_only_group_id() {
}
result.stderr_contains("retained as");

// Apparently on CI "macos-latest, x86_64-apple-darwin, feat_os_macos"
// Apparently on CI "macos-latest, x86_64-apple-darwin, feat_os_unix"
// the process has the rights to change from runner:staff to runner:wheel
#[cfg(any(windows, all(unix, not(target_os = "macos"))))]
// FreeBSD user on CI is part of wheel group
Expand Down
Loading