...@@ -39,8 +39,9 @@ crate-type = ["lib", "cdylib", "staticlib"] ...@@ -39,8 +39,9 @@ crate-type = ["lib", "cdylib", "staticlib"]
[features] [features]
default = [ default = [
"crypto-botan", "crypto-botan2",
] ]
crypto-nettle = ["sequoia-openpgp/crypto-nettle"] crypto-nettle = ["sequoia-openpgp/crypto-nettle"]
crypto-botan = ["sequoia-openpgp/crypto-botan"] crypto-botan = ["sequoia-openpgp/crypto-botan"]
crypto-botan2 = ["sequoia-openpgp/crypto-botan2"]
crypto-cng = ["sequoia-openpgp/crypto-cng"] crypto-cng = ["sequoia-openpgp/crypto-cng"]
...@@ -40,8 +40,10 @@ fn main() -> Result<(), std::io::Error> { ...@@ -40,8 +40,10 @@ fn main() -> Result<(), std::io::Error> {
// directory. // directory.
let content = String::from_utf8(content).unwrap() let content = String::from_utf8(content).unwrap()
.replace("REQUIRES", .replace("REQUIRES",
if cfg!(feature = "crypto-botan") { if cfg!(feature = "crypto-botan2") {
"botan-2" "botan-2"
} else if cfg!(feature = "crypto-botan3") {
"botan-3"
} else if cfg!(feature = "crypto-nettle") { } else if cfg!(feature = "crypto-nettle") {
"nettle" "nettle"
} else if cfg!(feature = "crypto-cng") { } else if cfg!(feature = "crypto-cng") {
......