diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-02-10 14:49:33 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-13 12:38:16 +0200 |
commit | 0055f6ba67161692d2a5d32b8c00c6b32bf0c0f1 (patch) | |
tree | 3cfe5110dd32cc6350c07d2ecb6303cdf8c2e922 /openpgp/benches/decrypt_verify_message.rs | |
parent | a931158a9810d1ab37a48640c38da779eca6113f (diff) |
bench: Restructure.
- Move all benchmarks into a single binary. This prevents dead_code
warnings for common functions not used in a specific benchmark, and
makes adding new benchmarks a little less surprising.
- Cargo would autimatically try to compile all .rs files in /benches
as benchmarks. Prevent this with `autobenches = false`.
Diffstat (limited to 'openpgp/benches/decrypt_verify_message.rs')
-rw-r--r-- | openpgp/benches/decrypt_verify_message.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/benches/decrypt_verify_message.rs b/openpgp/benches/decrypt_verify_message.rs index 33f15c3e..aa84e819 100644 --- a/openpgp/benches/decrypt_verify_message.rs +++ b/openpgp/benches/decrypt_verify_message.rs @@ -6,9 +6,7 @@ use sequoia_openpgp as openpgp; use openpgp::cert::Cert; use openpgp::parse::Parse; -mod common; -use common::decrypt; -use common::encrypt; +use crate::common::{decrypt, encrypt}; lazy_static::lazy_static! { static ref SENDER: Cert = |