]> git.lizzy.rs Git - rust.git/blob - crates/profile/Cargo.toml
Merge #11061
[rust.git] / crates / profile / Cargo.toml
1 [package]
2 name = "profile"
3 version = "0.0.0"
4 description = "TBD"
5 license = "MIT OR Apache-2.0"
6 edition = "2021"
7 rust-version = "1.57"
8
9 [lib]
10 doctest = false
11
12 [dependencies]
13 once_cell = "1.3.1"
14 cfg-if = "1"
15 libc = "0.2"
16 la-arena = { version = "0.3.0", path = "../../lib/arena" }
17 countme = { version = "3.0", features = ["enable"] }
18 jemalloc-ctl = { version = "0.4.1", package = "tikv-jemalloc-ctl", optional = true }
19
20 [target.'cfg(target_os = "linux")'.dependencies]
21 perf-event = "0.4"
22
23 [target.'cfg(windows)'.dependencies]
24 winapi = { version = "0.3.8", features = ["psapi"] }
25
26 [features]
27 cpu_profiler = []
28 jemalloc = ["jemalloc-ctl"]
29
30 # Uncomment to enable for the whole crate graph
31 # default = [ "cpu_profiler" ]