]> git.lizzy.rs Git - rust.git/blob - crates/profile/Cargo.toml
Auto merge of #12830 - hi-rustin:rustin-patch-issue-12717-fix, r=Veykril
[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.12.0"
14 cfg-if = "1.0.0"
15 libc = "0.2.126"
16 la-arena = { version = "0.3.0", path = "../../lib/la-arena" }
17 countme = { version = "3.0.1", features = ["enable"] }
18 jemalloc-ctl = { version = "0.5.0", package = "tikv-jemalloc-ctl", optional = true }
19
20 [target.'cfg(target_os = "linux")'.dependencies]
21 perf-event = "0.4.7"
22
23 [target.'cfg(windows)'.dependencies]
24 winapi = { version = "0.3.9", features = ["processthreadsapi", "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" ]