Re-establish cargo check --all-targets

The bench in benches/oprf.rs requires a feature to have visibility over private members, and doesn't work without it.
`cargo check --all-targets` is the standard quick way to check code under build & test targets, but does not specify features.

This simply skips the `benches` when the `"bench"` feature it depends on is not activated.
This commit is contained in:
François Garillot
2020-07-22 15:22:47 -04:00
parent 5a7b60bec7
commit 8885fe5aa1
+1
View File
@@ -40,3 +40,4 @@ rand = "0.7"
[[bench]]
name = "oprf"
harness = false
required-features = ["bench"]