Merge pull request #214126 from NickCao/ss-rust

shadowsocks-rust: enable more optional features
This commit is contained in:
Mario Rodas 2023-02-03 05:41:11 -05:00 committed by GitHub
commit 7cd7146780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,17 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security CoreServices ];
cargoBuildFlags = [
"--features=aead-cipher-extra,local-dns,local-http-native-tls,local-redir,local-tun"
cargoBuildFeatures = [
"trust-dns"
"local-http-native-tls"
"local-tunnel"
"local-socks4"
"local-redir"
"local-dns"
"local-tun"
"aead-cipher-extra"
"aead-cipher-2022"
"aead-cipher-2022-extra"
];
# all of these rely on connecting to www.example.com:80