From 8579919f036d13f57363e7fd7ec3ebb2a722e9fc Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Fri, 17 Feb 2023 18:13:36 +0100 Subject: [PATCH] opgpcard: Allow building with different sequoia crypto-backends. E.g.: cargo build --no-default-features --features sequoia-openpgp/crypto-rust --features sequoia-openpgp/allow-experimental-crypto --features sequoia-openpgp/allow-variable-time-crypto --- tools/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/Cargo.toml b/tools/Cargo.toml index fc616a0..d6ee9c4 100644 --- a/tools/Cargo.toml +++ b/tools/Cargo.toml @@ -17,9 +17,9 @@ name = "opgpcard" path = "src/opgpcard.rs" [dependencies] -sequoia-openpgp = "1.3" +sequoia-openpgp = { version = "1.3", default-features = false } openpgp-card-pcsc = { path = "../pcsc", version = "0.3" } -openpgp-card-sequoia = { path = "../openpgp-card-sequoia", version = "0.1" } +openpgp-card-sequoia = { path = "../openpgp-card-sequoia", version = "0.1.1", default-features = false } sshkeys = "0.3.2" pem = "1" rpassword = "6" @@ -41,5 +41,8 @@ subplot-build = "0.5.0" fehler = "1.0.0" subplotlib = "0.5.0" +[features] +default = ["sequoia-openpgp/default"] + [package.metadata.cargo-udeps.ignore] development = ["fehler", "subplotlib"]