]> git.lizzy.rs Git - rust.git/blob - crates/profile/Cargo.toml
Merge #10563
[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 = "2018"
7
8 [lib]
9 doctest = false
10
11 [dependencies]
12 once_cell = "1.3.1"
13 cfg-if = "1"
14 libc = "0.2"
15 la-arena = { version = "0.3.0", path = "../../lib/arena" }
16 countme = { version = "2.0.1", features = ["enable"] }
17 jemalloc-ctl = { version = "0.4.1", package = "tikv-jemalloc-ctl", optional = true }
18
19 [target.'cfg(target_os = "linux")'.dependencies]
20 perf-event = "0.4"
21
22 [target.'cfg(windows)'.dependencies]
23 winapi = { version = "0.3.8", features = ["psapi"] }
24
25 [features]
26 cpu_profiler = []
27 jemalloc = ["jemalloc-ctl"]
28
29 # Uncomment to enable for the whole crate graph
30 # default = [ "cpu_profiler" ]