]> git.lizzy.rs Git - rust.git/blob - crates/profile/Cargo.toml
f7231c2b8eaab89606e1d4500b48ac02d5faa279
[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 authors = ["rust-analyzer developers"]
7 edition = "2018"
8
9 [lib]
10 doctest = false
11
12 [dependencies]
13 once_cell = "1.3.1"
14 cfg-if = "1"
15 libc = "0.2.73"
16 la-arena = { version = "0.2.0", path = "../../lib/arena" }
17 jemalloc-ctl = { version = "0.3.3", optional = true }
18
19 [target.'cfg(target_os = "linux")'.dependencies]
20 perf-event = "0.4"
21
22 [features]
23 cpu_profiler = []
24 jemalloc = ["jemalloc-ctl"]
25
26 # Uncomment to enable for the whole crate graph
27 # default = [ "cpu_profiler" ]