diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-01-15 18:19:35 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-02-15 16:44:31 +0100 |
commit | 97f37c8cec0aa9e5fd0d8d92285a128d53342f56 (patch) | |
tree | fdcd5cc8e799227184b4c18e0dd392f2855b518d | |
parent | 57ef9e4dc1f5a918766eaa5440b36d7132652ab5 (diff) |
bench: Disable libtest benchmark harness.
- The libtest benchmark harness that is automatically added by cargo
interferes with criterion. Disable it everywhere where there are no
benchmarks.
- https://github.com/rust-lang/rust/issues/47241
- https://bheisler.github.io/criterion.rs/book/faq.html
-rw-r--r-- | autocrypt/Cargo.toml | 3 | ||||
-rw-r--r-- | buffered-reader/Cargo.toml | 3 | ||||
-rw-r--r-- | core/Cargo.toml | 3 | ||||
-rw-r--r-- | ffi-macros/Cargo.toml | 1 | ||||
-rw-r--r-- | ffi/Cargo.toml | 1 | ||||
-rw-r--r-- | guide/Cargo.toml | 3 | ||||
-rw-r--r-- | ipc/Cargo.toml | 3 | ||||
-rw-r--r-- | net/Cargo.toml | 3 | ||||
-rw-r--r-- | openpgp-ffi/Cargo.toml | 1 | ||||
-rw-r--r-- | openpgp/Cargo.toml | 3 | ||||
-rw-r--r-- | sq/Cargo.toml | 1 | ||||
-rw-r--r-- | sqv/Cargo.toml | 1 | ||||
-rw-r--r-- | store/Cargo.toml | 2 |
13 files changed, 28 insertions, 0 deletions
diff --git a/autocrypt/Cargo.toml b/autocrypt/Cargo.toml index 234f7b3f..6d329c78 100644 --- a/autocrypt/Cargo.toml +++ b/autocrypt/Cargo.toml @@ -24,6 +24,9 @@ maintenance = { status = "actively-developed" } sequoia-openpgp = { path = "../openpgp", version = "1", default-features = false } base64 = ">=0.12" +[lib] +bench = false + [features] default = ["sequoia-openpgp/default"] crypto-nettle = ["sequoia-openpgp/crypto-nettle"] diff --git a/buffered-reader/Cargo.toml b/buffered-reader/Cargo.toml index fbe360d3..5f9a7aba 100644 --- a/buffered-reader/Cargo.toml +++ b/buffered-reader/Cargo.toml @@ -23,6 +23,9 @@ bzip2 = { version = "0.4", optional = true } flate2 = { version = "1.0.1", optional = true } libc = "0.2.66" +[lib] +bench = false + [features] default = ["compression"] diff --git a/core/Cargo.toml b/core/Cargo.toml index 40bd6b7a..336f41bf 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -25,3 +25,6 @@ anyhow = "1.0.18" dirs = "2.0" tempfile = "3.1" thiserror = "1.0.2" + +[lib] +bench = false diff --git a/ffi-macros/Cargo.toml b/ffi-macros/Cargo.toml index ca628951..28a0c0d6 100644 --- a/ffi-macros/Cargo.toml +++ b/ffi-macros/Cargo.toml @@ -30,3 +30,4 @@ features = ["full"] [lib] proc-macro = true +bench = false diff --git a/ffi/Cargo.toml b/ffi/Cargo.toml index 6250a93e..51810a1e 100644 --- a/ffi/Cargo.toml +++ b/ffi/Cargo.toml @@ -39,6 +39,7 @@ filetime = "0.2" [lib] crate-type = ["cdylib", "staticlib"] +bench = false [features] default = ["sequoia-openpgp/default", "sequoia-store/default"] diff --git a/guide/Cargo.toml b/guide/Cargo.toml index 01b02208..713c6143 100644 --- a/guide/Cargo.toml +++ b/guide/Cargo.toml @@ -14,3 +14,6 @@ build = "build.rs" [dependencies] sequoia-openpgp = { path = "../openpgp", version = "1.0.0" } anyhow = "1.0.18" + +[lib] +bench = false diff --git a/ipc/Cargo.toml b/ipc/Cargo.toml index fb9bbecd..2459a2b3 100644 --- a/ipc/Cargo.toml +++ b/ipc/Cargo.toml @@ -50,6 +50,9 @@ lalrpop = ">=0.17" clap = "2.33" quickcheck = { version = "0.9", default-features = false } +[lib] +bench = false + [features] default = ["sequoia-openpgp/default"] crypto-nettle = ["sequoia-openpgp/crypto-nettle"] diff --git a/net/Cargo.toml b/net/Cargo.toml index fa2819b6..07cd2e6e 100644 --- a/net/Cargo.toml +++ b/net/Cargo.toml @@ -40,6 +40,9 @@ zbase32 = "0.1.2" rand = { version = "0.7", default-features = false } tokio = { version = "0.2.19", features = ["full"] } +[lib] +bench = false + [features] default = ["sequoia-openpgp/default"] crypto-nettle = ["sequoia-openpgp/crypto-nettle"] diff --git a/openpgp-ffi/Cargo.toml b/openpgp-ffi/Cargo.toml index 3afc9b18..2dd8b5db 100644 --- a/openpgp-ffi/Cargo.toml +++ b/openpgp-ffi/Cargo.toml @@ -34,6 +34,7 @@ filetime = "0.2" [lib] crate-type = ["lib", "cdylib", "staticlib"] +bench = false [features] default = ["sequoia-openpgp/default"] diff --git a/openpgp/Cargo.toml b/openpgp/Cargo.toml index 35827295..d644d583 100644 --- a/openpgp/Cargo.toml +++ b/openpgp/Cargo.toml @@ -77,6 +77,9 @@ compression-bzip2 = ["bzip2", "buffered-reader/compression-bzip2"] vendored = ["vendored-nettle"] vendored-nettle = ["nettle/vendored"] +[lib] +bench = false + [[example]] name = "pad" required-features = ["compression-deflate"] diff --git a/sq/Cargo.toml b/sq/Cargo.toml index 6671db9f..bcb50c77 100644 --- a/sq/Cargo.toml +++ b/sq/Cargo.toml @@ -49,6 +49,7 @@ assert_cli = "0.6" [[bin]] name = "sq" path = "src/sq-usage.rs" +bench = false [features] default = [ diff --git a/sqv/Cargo.toml b/sqv/Cargo.toml index 5f04c61f..79663083 100644 --- a/sqv/Cargo.toml +++ b/sqv/Cargo.toml @@ -35,6 +35,7 @@ assert_cli = "0.6" [[bin]] name = "sqv" path = "src/sqv-usage.rs" +bench = false [features] default = ["crypto-nettle"] diff --git a/store/Cargo.toml b/store/Cargo.toml index fed08fb7..54ed98aa 100644 --- a/store/Cargo.toml +++ b/store/Cargo.toml @@ -56,9 +56,11 @@ capnpc = "0.13" [lib] name = "sequoia_store" path = "src/lib.rs" +bench = false [[bin]] name = "sequoia-public-key-store" path = "src/server.rs" doc = false required-features = ["background-services"] +bench = false |