From 955225647e722b8f06fca58e5bb0a4bf12df195f Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:55:39 +0800 Subject: [PATCH] target_family issues --- Cargo.toml | 2 +- src/cmdopt.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9f21ccd..6ea32b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,7 +58,7 @@ webpki = { package = "rustls-webpki", version = "0.102", features = [ ] } webpki-roots = "0.26" -[target.'cfg(target_family="unix")'.dependencies] +[target.'cfg(unix)'.dependencies] daemonize = "0.5" [target.'cfg(target_os="android")'.dependencies] diff --git a/src/cmdopt.rs b/src/cmdopt.rs index 6c15944..664553d 100644 --- a/src/cmdopt.rs +++ b/src/cmdopt.rs @@ -92,7 +92,7 @@ pub struct CmdOpt { #[arg(short, long, value_name = "level", value_enum, default_value = "info")] pub verbosity: ArgVerbosity, - #[cfg(target_family = "unix")] + #[cfg(unix)] #[arg(short, long)] /// Daemonize for unix family. pub daemonize: bool,