diff options
author | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-04-04 18:10:29 +0200 |
---|---|---|
committer | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-04-06 16:41:34 +0200 |
commit | 583cb3def73457d9594d518679d03fcda1464180 (patch) | |
tree | 89270ddea8c83b08c15e8496477bc25d031978e2 /openpgp/src/lib.rs | |
parent | 488985f8f2e119c553f2d03d8bd87d49f45d8227 (diff) |
openpgp: Introduce (mandatory, for now) crypto-nettle feature flag
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r-- | openpgp/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index f41eeba6..7d9a7670 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -54,6 +54,9 @@ extern crate lazy_static; #[macro_use] mod macros; +#[cfg(not(feature = "crypto-nettle"))] +compile_error!("Sequoia currently requires the Nettle cryptographic library for now"); + // On debug builds, Vec<u8>::truncate is very, very slow. For // instance, running the decrypt_test_stream test takes 51 seconds on // my (Neal's) computer using Vec<u8>::truncate and <0.1 seconds using |