diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-01-15 18:19:35 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-13 12:38:15 +0200 |
commit | 7293e6e9b01e255dc1adde9b7aa8b5666132cbdc (patch) | |
tree | 52436566d6fb1e34f9d6c147f9f2ad4d8b509e5a | |
parent | 6a26439ee4c5b780d7f507d3bbb44c4f1dd0cc97 (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-- | 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 |
12 files changed, 25 insertions, 0 deletions
diff --git a/autocrypt/Cargo.toml b/autocrypt/Cargo.toml index 38dfed86..17594b0e 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 3aef5d44..50b01608 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/ffi-macros/Cargo.toml b/ffi-macros/Cargo.toml index c1ccbfd3..843562fd 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 4a5b6930..7962180a 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 0f62fd43..d900313f 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 22737e39..85cb1414 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 13684359..03cd657a 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 57a82a1f..89763507 100644 --- a/store/Cargo.toml +++ b/store/Cargo.toml @@ -55,9 +55,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 |