From 167a893901da5a999357a5d371b99e2b5202ce5e Mon Sep 17 00:00:00 2001 From: Boshen Date: Sat, 16 Mar 2024 13:02:24 +0800 Subject: [PATCH] reorder items in Cargo.toml --- Cargo.toml | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2c8776b..09484a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,10 +20,22 @@ categories = ["development-tools::profiling"] license = "Apache-2.0 OR MIT" exclude = ["book/*"] +[badges] +maintenance = { status = "passively-maintained" } + +[workspace] +exclude = ["cargo-criterion"] + +[[bench]] +name = "bench_main" +harness = false + +[lib] +bench = false + [dependencies] anes = "0.1.6" once_cell = "1.19" -criterion-plot = { path = "plot", version = "0.5.0" } itertools = ">=0.10, <=0.12" serde = "1.0" serde_json = "1.0" @@ -36,6 +48,7 @@ cast = "0.3" num-traits = { version = "0.2", default-features = false, features = ["std"] } oorandom = "11.1" regex = { version = "1.10", default-features = false, features = ["std"] } +criterion-plot = { path = "plot", version = "0.5.0" } # Optional dependencies rayon = { version = "1.9", optional = true } @@ -46,12 +59,11 @@ tokio = { version = "1.36", default-features = false, features = [ "rt", ], optional = true } async-std = { version = "1.12", optional = true } - -[dependencies.plotters] -version = "^0.3.5" -optional = true -default-features = false -features = ["svg_backend", "area_series", "line_series"] +plotters = { version = "^0.3.5", default-features = false, features = [ + "svg_backend", + "area_series", + "line_series", +], optional = true } [dev-dependencies] tempfile = "3.10.1" @@ -60,9 +72,6 @@ quickcheck = { version = "1.0", default-features = false } rand = "0.8" futures = { version = "0.3", default_features = false, features = ["executor"] } -[badges] -maintenance = { status = "passively-maintained" } - [features] stable = [ "csv_output", @@ -100,16 +109,6 @@ cargo_bench_support = [] # cargo-criterion's --message-format=json option. csv_output = ["csv"] -[workspace] -exclude = ["cargo-criterion"] - -[[bench]] -name = "bench_main" -harness = false - -[lib] -bench = false - # Enable all of the async runtimes for the docs.rs output [package.metadata.docs.rs] features = ["async_futures", "async_smol", "async_std", "async_tokio"]