[package]
name = "criterion2"
version = "3.0.0"
authors = [
"Brook Heisler <brookheisler@gmail.com>",
"Jorge Aparicio <japaricious@gmail.com>",
"Boshen <boshenc@gmail.com>",
]
edition = "2024"
rust-version = "1.85.0"
description = "Statistics-driven micro-benchmarking library"
homepage = "https://bheisler.github.io/criterion.rs/book/index.html"
repository = "https://github.com/Boshen/criterion2.rs"
readme = "README.md"
keywords = ["benchmark", "criterion"]
categories = ["development-tools::profiling"]
license = "Apache-2.0 OR MIT"
exclude = ["book/*"]
[[bench]]
name = "bench_main"
harness = false
[lib]
name = "criterion"
bench = false
[dependencies]
anes = "0.2.0"
serde = "1.0.217"
serde_json = "1.0.138"
ciborium = "0.2.2"
bpaf = { version = "0.9.16", default-features = false }
walkdir = "2.5"
cast = "0.3"
num-traits = { version = "0.2.19", default-features = false, features = ["std"] }
oorandom = "11.1.4"
rayon = { version = "1.10", optional = true }
futures = { version = "0.3.31", default-features = false, optional = true }
smol = { version = "2.0.2", default-features = false, optional = true }
tokio = { version = "1.43.0", default-features = false, features = ["rt"], optional = true }
async-std = { version = "1.13.0", optional = true }
codspeed = { version = "2.8.0", optional = true }
colored = { version = "3.0.0", optional = true }
document-features = { version = "0.2.11", optional = true }
[dev-dependencies]
tempfile = "3.16.0"
approx = "0.5.1"
quickcheck = { version = "1.0.3", default-features = false }
rand = { version = "0.9.0", features = ["os_rng", "std_rng"] }
futures = { version = "0.3.31", default-features = false, features = ["executor"] }
[features]
default = ["cargo_bench_support", "rayon"]
stable = ["async_futures", "async_smol", "async_std", "async_tokio"]
codspeed = ["dep:codspeed", "dep:colored"]
async = []
async_futures = ["async", "futures/executor"]
async_smol = ["async", "smol"]
async_tokio = ["async", "tokio"]
async_std = ["async", "async-std"]
cargo_bench_support = []
[package.metadata.docs.rs]
features = ["async_futures", "async_smol", "async_std", "async_tokio"]