Skip to content

Commit

Permalink
feat: shadowsocks-crypto enables ring for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Nov 2, 2024
1 parent 3ccedea commit d79b018
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions crates/shadowsocks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ trust-dns = ["hickory-dns"]
# WARN: Stream Cipher Protocol is proved to be insecure
# https://github.com/shadowsocks/shadowsocks-rust/issues/373
# Users should always avoid using these ciphers in practice
stream-cipher = ["shadowsocks-crypto/v1-stream"]
stream-cipher = ["shadowsocks-crypto", "shadowsocks-crypto/v1-stream"]

# Enable AEAD ciphers
aead-cipher = ["shadowsocks-crypto/v1-aead"]
aead-cipher = ["shadowsocks-crypto", "shadowsocks-crypto/v1-aead"]

# Enable extra AEAD ciphers
# WARN: These non-standard AEAD ciphers are not officially supported by shadowsocks community
aead-cipher-extra = ["aead-cipher", "shadowsocks-crypto/v1-aead-extra"]

# Enable AEAD 2022
aead-cipher-2022 = [
"shadowsocks-crypto",
"shadowsocks-crypto/v2",
"rand/small_rng",
"aes",
Expand Down Expand Up @@ -91,15 +92,9 @@ notify = { version = "7.0", optional = true }

aes = { version = "0.8", optional = true }
blake3 = "1.5"

[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
shadowsocks-crypto = { version = "0.5.8", default-features = false, features = [
"ring",
] }

[target.'cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))'.dependencies]
shadowsocks-crypto = { version = "0.5.8", default-features = false, features = [
] }
], optional = true }

[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.3"
Expand Down

0 comments on commit d79b018

Please sign in to comment.