• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2authors = [
3  "Jorge Aparicio <japaricious@gmail.com>",
4  "Brook Heisler <brookheisler@gmail.com>",
5]
6name    = "criterion"
7version = "0.3.5"
8edition = "2018"
9
10description = "Statistics-driven micro-benchmarking library"
11homepage    = "https://bheisler.github.io/criterion.rs/book/index.html"
12repository  = "https://github.com/bheisler/criterion.rs"
13readme      = "README.md"
14keywords    = ["criterion", "benchmark"]
15categories  = ["development-tools::profiling"]
16license     = "Apache-2.0/MIT"
17exclude     = ["book/*"]
18
19[dependencies]
20lazy_static    = "1.4"
21criterion-plot = { path = "plot", version = "0.4.4" }
22itertools      = "0.10"
23serde          = "1.0"
24serde_json     = "1.0"
25serde_derive   = "1.0"
26serde_cbor     = "0.11"
27atty           = "0.2"
28clap           = { version = "2.33", default-features = false }
29csv            = "1.1"
30walkdir        = "2.3"
31tinytemplate   = "1.1"
32cast           = "0.2"
33num-traits     = { version = "0.2", default-features = false }
34oorandom       = "11.1"
35rayon          = "1.3"
36regex          = { version = "1.3", default-features = false, features = ["std"] }
37futures        = { version = "0.3", default_features = false, optional = true }
38smol           = { version = "1.2", default-features = false, optional = true }
39tokio          = { version = "1.0", default-features = false, features = ["rt"], optional = true }
40async-std      = { version = "1.9", optional = true }
41
42[dependencies.plotters]
43version          = "^0.3.1"
44default-features = false
45features         = ["svg_backend", "area_series", "line_series"]
46
47[dev-dependencies]
48tempfile   = "3.2.0"
49approx     = "0.5.0"
50quickcheck = { version = "1.0", default-features = false }
51rand       = "0.8"
52futures    = { version = "0.3", default_features = false, features = ["executor"] }
53
54[badges]
55maintenance = { status = "passively-maintained" }
56
57[features]
58stable  = ["async_futures", "async_smol", "async_tokio", "async_std"]
59default = ["cargo_bench_support"]
60
61# Enable use of the nightly-only test::black_box function to discourage compiler optimizations.
62real_blackbox = []
63
64# Enable async/await support
65async = ["futures"]
66
67# These features enable built-in support for running async benchmarks on each different async
68# runtime.
69async_futures = ["futures/executor", "async"]
70async_smol    = ["smol", "async"]
71async_tokio   = ["tokio", "async"]
72async_std     = ["async-std", "async"]
73
74# This feature _currently_ does nothing except disable a warning message, but in 0.4.0 it will be
75# required in order to have Criterion.rs generate its own plots (as opposed to using cargo-criterion)
76html_reports = []
77
78# This feature _currently_ does nothing except disable a warning message, but in 0.4.0 it will be
79# required in order to have Criterion.rs be usable outside of cargo-criterion.
80cargo_bench_support = []
81
82# This feature _currently_ does nothing, but in 0.4.0 it will be
83# required in order to have Criterion.rs generate CSV files. This feature is deprecated in favor of
84# cargo-criterion's --message-format=json option.
85csv_output = []
86
87[workspace]
88exclude = ["cargo-criterion"]
89
90[[bench]]
91name    = "bench_main"
92harness = false
93
94[lib]
95bench = false
96
97# Enable all of the async runtimes for the docs.rs output
98[package.metadata.docs.rs]
99features = ["async_futures", "async_smol", "async_std", "async_tokio"]
100