From 95eac51a7755edb97f0d2062a4d65192709ab0a6 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 21 Dec 2023 22:25:37 +0100 Subject: [PATCH] Add a comment on default-features=false requirement This is documented, but having it here as well can be useful. Having "optimal" as a default feature is a workaround for Cargo's inability to select dependencies by feature. For that workaround to be less annoying to use, the "pure-rust" and "optimal" targets should be mutually exclusive. The ability for Cargo to do that was asked in 2016 but, just like the ability to select dependencies by feature, the issue is still open today. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2db5011..b2d670c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,8 +45,8 @@ benchmark-simple = "0.1.8" default = ["optimal"] cwt = ["ciborium"] optimal = ["boring"] +# Note: to emulate boringssl, "default-features = false" is required in addition to "pure-rust". pure-rust = ["superboring"] - [[bench]] name = "benchmark" harness = false