From 555271d8a97dc0e9fe3f4ee7acc5d2912c10d18d Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Tue, 20 Jan 2026 21:10:00 +0900 Subject: [PATCH] runcon, chcon: Don't fetch crates at unsupported target (#10360) --- src/uu/chcon/Cargo.toml | 2 +- src/uu/runcon/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/chcon/Cargo.toml b/src/uu/chcon/Cargo.toml index ab05ed53c..110a70492 100644 --- a/src/uu/chcon/Cargo.toml +++ b/src/uu/chcon/Cargo.toml @@ -17,7 +17,7 @@ workspace = true [lib] path = "src/chcon.rs" -[dependencies] +[target.'cfg(target_os = "linux")'.dependencies] # todo: block fetching crates without feat_selinux clap = { workspace = true } uucore = { workspace = true, features = ["entries", "fs", "perms"] } selinux = { workspace = true } diff --git a/src/uu/runcon/Cargo.toml b/src/uu/runcon/Cargo.toml index a7c235dca..f358c31ec 100644 --- a/src/uu/runcon/Cargo.toml +++ b/src/uu/runcon/Cargo.toml @@ -17,7 +17,7 @@ workspace = true [lib] path = "src/runcon.rs" -[dependencies] +[target.'cfg(target_os = "linux")'.dependencies] # todo: block fetching crates without feat_selinux clap = { workspace = true } uucore = { workspace = true, features = ["entries", "fs", "perms", "selinux"] } selinux = { workspace = true }