1[package]
2name = "divan"
3version = "0.1.21"
4rust-version = "1.80.0"
5edition = "2021"
6authors = ["Nikolai Vazquez"]
7license = "MIT OR Apache-2.0"
8description = "Statistically-comfy benchmarking library."
9repository = "https://github.com/nvzqz/divan"
10homepage = "https://github.com/nvzqz/divan"
11documentation = "https://docs.rs/divan"
12categories = ["development-tools::profiling"]
13keywords = ["benchmark", "criterion", "instrument", "measure", "performance"]
14readme = "README.md"
15
16[dependencies]
17divan-macros = { version = "=0.1.21", path = "macros" }
18
19cfg-if = "1"
20clap = { version = "4", default-features = false, features = ["std", "env"] }
21condtype = "1.3"
22regex = { package = "regex-lite", version = "0.1", default-features = false, features = ["std", "string"] }
23
24[target.'cfg(unix)'.dependencies]
25libc = { workspace = true }
26
27[dev-dependencies]
28mimalloc = "0.1"
29
30[features]
31default = ["wrap_help"]
32help = ["clap/help"]
33wrap_help = ["help", "clap/wrap_help"]
34
35# Opt out of faster static thread-local access and instead always dynamically
36# allocate thread-local storage.
37#
38# On x86_64 macOS we use TLS key 11 (reserved for Windows ABI compatability):
39# https://github.com/apple-oss-distributions/libpthread/blob/libpthread-519/private/pthread/tsd_private.h#L99
40dyn_thread_local = []
41
42# Benchmark internals. Not meant for public use.
43internal_benches = []
44
45[workspace]
46members = ["macros", "examples", "internal_benches"]
47
48[workspace.dependencies]
49divan = { path = "." }
50libc = "0.2.148"
51