diff --git a/crates/shadowsocks/Cargo.toml b/crates/shadowsocks/Cargo.toml index 20250235..4c8161cc 100644 --- a/crates/shadowsocks/Cargo.toml +++ b/crates/shadowsocks/Cargo.toml @@ -81,7 +81,6 @@ tokio = { version = "1.9.0", features = [ "sync", "time", ] } -tokio-tfo = "0.2.0" hickory-resolver = { version = "0.24", optional = true } arc-swap = { version = "1.7", optional = true } @@ -96,6 +95,9 @@ shadowsocks-crypto = { version = "0.5.4", features = ["ring"] } [target.'cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))'.dependencies] shadowsocks-crypto = { version = "0.5.4", features = [] } +[target.'cfg(any(windows, target_os = "linux", target_os = "android", target_os = "freebsd", target_os = "macos", target_os = "ios", target_os = "watchos", target_os = "tvos"))'.dependencies] +tokio-tfo = "0.2.0" + [target.'cfg(windows)'.dependencies] windows-sys = { version = "0.52", features = [ "Win32_Foundation",