Debian Codegraph @

debian/missing-sources/criterion/Cargo.toml.orig

raw
1 [package]
2 authors = [
3 "Jorge Aparicio <[email protected]>",
4 "Brook Heisler <[email protected]>",
5 ]
6 name = "criterion"
7 # When bumping:
8 #
9 # * Update version numbers in the book;
10 version = "0.7.0"
11 edition = "2021"
12 # Update the MSRV variable in .github/workflows/ci.yml when changing this.
13 rust-version = "1.80"
14
15 description = "Statistics-driven micro-benchmarking library"
16 homepage = "https://bheisler.github.io/criterion.rs/book/index.html"
17 repository = "https://github.com/bheisler/criterion.rs"
18 readme = "README.md"
19 keywords = ["criterion", "benchmark"]
20 categories = ["development-tools::profiling"]
21 license = "Apache-2.0 OR MIT"
22 exclude = ["book/*"]
23
24 [dependencies]
25 anes = "0.1.4"
26 criterion-plot = { path = "plot", version = "0.6.0" }
27 itertools = "0.13"
28 serde = { version = "1.0.100", features = ["derive"] }
29 serde_json = "1.0.100"
30 ciborium = "0.2.0"
31 clap = { version = "4.5", default-features = false, features = ["std", "help"] }
32 walkdir = "2.3"
33 tinytemplate = "1.1"
34 cast = "0.3"
35 num-traits = { version = "0.2", default-features = false, features = ["std"] }
36 oorandom = "11.1"
37 regex = { version = "1.5.1", default-features = false, features = ["std"] }
38
39 # Optional dependencies
40 rayon = { version = "1.3", optional = true }
41 csv = { version = "1.1", optional = true }
42 futures = { version = "0.3", default-features = false, features = ["executor"], optional = true }
43 smol = { version = "2.0", default-features = false, optional = true }
44 tokio = { version = "1.0", default-features = false, features = [
45 "rt",
46 ], optional = true }
47 async-std = { version = "1.13", optional = true }
48
49 [dependencies.plotters]
50 version = "^0.3.2"
51 optional = true
52 default-features = false
53 features = ["svg_backend", "area_series", "line_series"]
54
55 [dev-dependencies]
56 tempfile = "3.5.0"
57 approx = "0.5.0"
58 quickcheck = { version = "1.0", default-features = false }
59 rand = "0.8"
60 futures = "0.3"
61
62 [badges]
63 maintenance = { status = "passively-maintained" }
64
65 [features]
66 stable = [
67 "csv_output",
68 "html_reports",
69 "async_futures",
70 "async_smol",
71 "async_tokio",
72 "async_std",
73 ]
74 default = ["rayon", "plotters", "cargo_bench_support"]
75
76 # This is a legacy feature that no longer does anything, but removing it would be a semver break.
77 real_blackbox = []
78
79 # Enable rayon support
80 rayon = ["dep:rayon"]
81
82 # Enable plotters support
83 plotters = ["dep:plotters"]
84
85 # Enable async/await support
86 async = []
87
88 # These features enable built-in support for running async benchmarks on each different async
89 # runtime.
90 async_futures = ["dep:futures", "async"]
91 async_smol = ["dep:smol", "async"]
92 async_tokio = ["dep:tokio", "async"]
93 async_std = ["dep:async-std", "async"]
94
95 # Make Criterion.rs generate its own plots (as opposed to using cargo-criterion)
96 html_reports = []
97
98 # Make Criterion.rs usable outside of cargo-criterion.
99 cargo_bench_support = []
100
101 # Make Criterion.rs generate CSV files. This feature is deprecated in favor of
102 # cargo-criterion's --message-format=json option.
103 csv_output = ["dep:csv"]
104
105 [workspace]
106 exclude = ["cargo-criterion"]
107 resolver = "2"
108
109 [[bench]]
110 name = "bench_main"
111 harness = false
112
113 [lib]
114 bench = false
115
116 # Enable all of the async runtimes for the docs.rs output
117 [package.metadata.docs.rs]
118 features = ["async_futures", "async_smol", "async_std", "async_tokio"]