diff --git a/Cargo.lock b/Cargo.lock index 96e33704a..da9dda8d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -652,7 +652,6 @@ dependencies = [ "walkdir", "wincode", "wincode-derive", - "xattr", "zip", ] diff --git a/Cargo.toml b/Cargo.toml index 52c7b5ed5..bc11ed80b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -567,7 +567,6 @@ nix = { workspace = true, features = [ "user", ] } rlimit = "0.10.1" -xattr.workspace = true # Used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record # to deserialize an utmpx struct into a binary file diff --git a/tests/uutests/Cargo.toml b/tests/uutests/Cargo.toml index e84214ace..1b523ee7e 100644 --- a/tests/uutests/Cargo.toml +++ b/tests/uutests/Cargo.toml @@ -38,4 +38,6 @@ uucore = { workspace = true, features = [ [target.'cfg(unix)'.dependencies] nix = { workspace = true, features = ["process", "signal", "term", "user"] } rlimit = "0.10.1" + +[target.'cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))'.dependencies] xattr = { workspace = true }