Skip to content

Commit

Permalink
Disable default benchmark harness for all workspace crates
Browse files Browse the repository at this point in the history
This is necessary in order to provide criterion-specific arguments to
`cargo bench`, such as `--profile-time`.
  • Loading branch information
str4d committed Aug 5, 2021
1 parent 3ffa3ae commit 0f15743
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/equihash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ edition = "2018"
[dependencies]
blake2b_simd = "0.5"
byteorder = "1"

[lib]
bench = false
3 changes: 3 additions & 0 deletions components/zcash_address/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ bs58 = { version = "0.4", features = ["check"] }

[dev-dependencies]
proptest = "0.10.1"

[lib]
bench = false
3 changes: 3 additions & 0 deletions components/zcash_note_encryption/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ subtle = "2.2.3"
[dev-dependencies]
zcash_primitives = { version = "0.5", path = "../../zcash_primitives" }
jubjub = "0.7"

[lib]
bench = false
3 changes: 3 additions & 0 deletions zcash_client_backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,8 @@ zcash_proofs = { version = "0.5", path = "../zcash_proofs" }
[features]
test-dependencies = ["proptest", "zcash_primitives/test-dependencies"]

[lib]
bench = false

[badges]
maintenance = { status = "actively-developed" }
3 changes: 3 additions & 0 deletions zcash_client_sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ zcash_proofs = { version = "0.5", path = "../zcash_proofs" }
[features]
mainnet = []
test-dependencies = ["zcash_client_backend/test-dependencies"]

[lib]
bench = false
2 changes: 2 additions & 0 deletions zcash_extensions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ secp256k1 = { version = "0.20", features = ["rand", "bitcoin_hashes"] }
[features]
transparent-inputs = []

[lib]
bench = false
3 changes: 3 additions & 0 deletions zcash_history/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ quickcheck = "0.9"
bigint = "4"
byteorder = "1"
blake2 = { package = "blake2b_simd", version = "0.5" }

[lib]
bench = false
3 changes: 3 additions & 0 deletions zcash_primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ transparent-inputs = ["ripemd160", "secp256k1"]
test-dependencies = ["proptest"]
zfuture = []

[lib]
bench = false

[[bench]]
name = "note_decryption"
harness = false
Expand Down
3 changes: 3 additions & 0 deletions zcash_proofs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ download-params = ["minreq"]
local-prover = ["directories"]
multicore = ["bellman/multicore"]

[lib]
bench = false

[[bench]]
name = "sapling"
harness = false
Expand Down

0 comments on commit 0f15743

Please sign in to comment.