From 4fb4b353f883fa0da3ccc2821fc777b31c8798f3 Mon Sep 17 00:00:00 2001 From: houseme Date: Sun, 13 Jul 2025 23:13:08 +0800 Subject: [PATCH] improve code for cargo.toml --- rustfs/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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