diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /src/tools/rust-analyzer/crates/profile/Cargo.toml | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/rust-analyzer/crates/profile/Cargo.toml')
-rw-r--r-- | src/tools/rust-analyzer/crates/profile/Cargo.toml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/profile/Cargo.toml b/src/tools/rust-analyzer/crates/profile/Cargo.toml new file mode 100644 index 000000000..0b78a45a2 --- /dev/null +++ b/src/tools/rust-analyzer/crates/profile/Cargo.toml @@ -0,0 +1,31 @@ +[package] +name = "profile" +version = "0.0.0" +description = "TBD" +license = "MIT OR Apache-2.0" +edition = "2021" +rust-version = "1.57" + +[lib] +doctest = false + +[dependencies] +once_cell = "1.12.0" +cfg-if = "1.0.0" +libc = "0.2.126" +la-arena = { version = "0.3.0", path = "../../lib/la-arena" } +countme = { version = "3.0.1", features = ["enable"] } +jemalloc-ctl = { version = "0.5.0", package = "tikv-jemalloc-ctl", optional = true } + +[target.'cfg(target_os = "linux")'.dependencies] +perf-event = "0.4.7" + +[target.'cfg(windows)'.dependencies] +winapi = { version = "0.3.9", features = ["processthreadsapi", "psapi"] } + +[features] +cpu_profiler = [] +jemalloc = ["jemalloc-ctl"] + +# Uncomment to enable for the whole crate graph +# default = [ "cpu_profiler" ] |