From 054cbf1a924825fb3d4be72c38006c9c504e0fa8 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Mon, 7 Feb 2022 13:24:44 +0100 Subject: [PATCH] Allow selecting Sequoia features. --- Cargo.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 25e53fe..51a1757 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ memmem = "0.1" memoffset = "0.6" # When bumping the version of Sequoia search the code for XXX to find # spots where we can take advantage of new features. -sequoia-openpgp = "1.3" +sequoia-openpgp = { version = "1.0", default-features = false } thiserror = "1" [dependencies.rusqlite] @@ -38,3 +38,10 @@ features = ["bundled", "collation", "blob"] [lib] crate-type = ["cdylib"] + +[features] +default = [ + "sequoia-openpgp/default", +] +crypto-nettle = ["sequoia-openpgp/crypto-nettle"] +crypto-cng = ["sequoia-openpgp/crypto-cng"] -- GitLab