You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compile errors with --all-features on non-Linux #11019
error[E0433]: failed to resolve: could not find `selinux` in `uucore`
--> src/uu/id/src/id.rs:145:36
|
145 | selinux_supported: uucore::selinux::is_selinux_enabled(),
| ^^^^^^^ could not find `selinux` in `uucore`
error[E0433]: failed to resolve: could not find `smack` in `uucore`
--> src/uu/id/src/id.rs:198:27
|
198 | match uucore::smack::get_smack_label_for_self() {
| ^^^^^ could not find `smack` in `uucore`
error[E0425]: cannot find value `uumain` in crate `chcon`
--> target/debug/build/coreutils-dbc4be9239a5e04a/out/uutils_map.rs:152:27
|
152 | ("chcon", (chcon::uumain, chcon::uu_app)),
| ^^^^^^ not found in `chcon`
$ cargo clippy --workspace --all-targets --all-features -q --keep-going
error[E0425]: cannot find value `uumain` in crate `chcon`
--> target/debug/build/coreutils-f72911ea23e264cf/out/uutils_map.rs:152:27
|
152 | ("chcon", (chcon::uumain, chcon::uu_app)),
| ^^^^^^ not found in `chcon`
error[E0425]: cannot find value `uu_app` in crate `chcon`
--> target/debug/build/coreutils-f72911ea23e264cf/out/uutils_map.rs:152:42
|
152 | ("chcon", (chcon::uumain, chcon::uu_app)),
| ^^^^^^ not found in `chcon`
error[E0425]: cannot find value `uumain` in crate `runcon`
--> target/debug/build/coreutils-f72911ea23e264cf/out/uutils_map.rs:214:29
|
214 | ("runcon", (runcon::uumain, runcon::uu_app)),
| ^^^^^^ not found in `runcon`
error[E0425]: cannot find value `uu_app` in crate `runcon`
--> target/debug/build/coreutils-f72911ea23e264cf/out/uutils_map.rs:214:45
|
214 | ("runcon", (runcon::uumain, runcon::uu_app)),
| ^^^^^^ not found in `runcon`
This issue does not making a sense for me.
Platform specific feature is guarded by Cargo.toml to prevent error.
But --all-features means you are deliberately breaking it. In the cases, it is natural to cause eror.
Activity
oech3 commentedon Feb 18, 2026
You should install SELinux related header packages on the system. We cannot fix it at
cargoside.xtqqczze commentedon Feb 18, 2026
#11016 will fix selinux/smack errors for non-Linux platforms.
xtqqczze commentedon Feb 18, 2026
@oech3 Is this possible on non-Linux systems?
oech3 commentedon Feb 18, 2026
depending on Linux distribution what you use.No[-]Failure to compile with `--all-features`[/-][+]Compile errors with `--all-features`[/+][-]Compile errors with `--all-features`[/-][+]Compile errors with `--all-features` on macOS[/+]xtqqczze commentedon Apr 29, 2026
[-]Compile errors with `--all-features` on macOS[/-][+]Compile errors with `--all-features` on non-Linux[/+]oech3 commentedon May 16, 2026
This issue does not making a sense for me.
Platform specific feature is guarded by
Cargo.tomlto prevent error.But
--all-featuresmeans you are deliberately breaking it. In the cases, it is natural to cause eror.oech3 commentedon May 17, 2026
I guess there are many missing utils making some sense on "native" Windows for people on MSYS2.
oech3 commentedon May 17, 2026
But why should we support this?
[Edit] Just guard this part of hook by Linux
xtqqczze commentedon May 19, 2026
cargo clippy --workspace --all-targets --all-featuresis now successful for macOS, #12386 will enforce in CI.