diff --git a/rustfs/Cargo.toml b/rustfs/Cargo.toml index 97ea6a07..b13ed45b 100644 --- a/rustfs/Cargo.toml +++ b/rustfs/Cargo.toml @@ -81,7 +81,6 @@ serde_json.workspace = true serde_urlencoded = { workspace = true } shadow-rs = { workspace = true, features = ["build", "metadata"] } socket2 = { workspace = true } -sysctl = { workspace = true } thiserror = { workspace = true } tracing.workspace = true time = { workspace = true, features = ["parsing", "formatting", "serde"] } @@ -108,6 +107,9 @@ urlencoding = { workspace = true } uuid = { workspace = true } zip = { workspace = true } +[target.'cfg(any(target_os = "macos", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies] +sysctl = { workspace = true } + [target.'cfg(target_os = "linux")'.dependencies] libsystemd.workspace = true