diff --git a/Cargo.toml b/Cargo.toml index f2366786506d8a854121ed62b15c308638685211..2649689a2a68f04dc007d8e3c67b2af86922f4a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,8 +39,9 @@ crate-type = ["lib", "cdylib", "staticlib"] [features] default = [ - "crypto-botan", + "crypto-botan2", ] crypto-nettle = ["sequoia-openpgp/crypto-nettle"] crypto-botan = ["sequoia-openpgp/crypto-botan"] +crypto-botan2 = ["sequoia-openpgp/crypto-botan2"] crypto-cng = ["sequoia-openpgp/crypto-cng"] diff --git a/build.rs b/build.rs index 9c04e9429c5e1ffef9dc12a18d289e164b15dcf4..bd1fef9afee6e5bc668ba90fe5ed3d296a2197a0 100644 --- a/build.rs +++ b/build.rs @@ -40,8 +40,10 @@ fn main() -> Result<(), std::io::Error> { // directory. let content = String::from_utf8(content).unwrap() .replace("REQUIRES", - if cfg!(feature = "crypto-botan") { + if cfg!(feature = "crypto-botan2") { "botan-2" + } else if cfg!(feature = "crypto-botan3") { + "botan-3" } else if cfg!(feature = "crypto-nettle") { "nettle" } else if cfg!(feature = "crypto-cng") {