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