Skip to content

Commit 6ad0922

Browse files
Use dep syntax for enabling optional dependencies.
This prevents creating implicit features and also prevents these from showing up as features that can be enabled when using `cargo add criterion`.
1 parent 32518fa commit 6ad0922

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ async = []
8080

8181
# These features enable built-in support for running async benchmarks on each different async
8282
# runtime.
83-
async_futures = ["futures/executor", "async"]
84-
async_smol = ["smol", "async"]
85-
async_tokio = ["tokio", "async"]
86-
async_std = ["async-std", "async"]
83+
async_futures = ["dep:futures", "futures/executor", "async"]
84+
async_smol = ["dep:smol", "async"]
85+
async_tokio = ["dep:tokio", "async"]
86+
async_std = ["dep:async-std", "async"]
8787

8888
# This feature _currently_ does nothing except disable a warning message, but in 0.4.0 it will be
8989
# required in order to have Criterion.rs generate its own plots (as opposed to using cargo-criterion)
@@ -96,7 +96,7 @@ cargo_bench_support = []
9696
# This feature _currently_ does nothing, but in 0.4.0 it will be
9797
# required in order to have Criterion.rs generate CSV files. This feature is deprecated in favor of
9898
# cargo-criterion's --message-format=json option.
99-
csv_output = ["csv"]
99+
csv_output = ["dep:csv"]
100100

101101
[workspace]
102102
exclude = ["cargo-criterion"]

0 commit comments

Comments
 (0)