From 8885fe5aa15610f59c193784b7a77b5176c5c821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Wed, 22 Jul 2020 15:22:47 -0400 Subject: [PATCH] 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. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index adad5be..c79c8de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,3 +40,4 @@ rand = "0.7" [[bench]] name = "oprf" harness = false +required-features = ["bench"]