forked from tikv/pprof-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
84 lines (71 loc) · 1.99 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[package]
name = "pprof"
version = "0.8.0"
authors = ["Yang Keao <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
description = "An internal perf tools for rust programs."
repository = "https://github.com/tikv/pprof-rs"
documentation = "https://docs.rs/pprof/"
readme = "README.md"
[features]
default = ["cpp"]
flamegraph = ["inferno"]
# A private feature to indicate either prost-codec or protobuf-codec is enabled.
_protobuf = []
prost-codec = ["prost", "prost-derive", "prost-build", "_protobuf"]
protobuf-codec = ["protobuf", "protobuf-codegen-pure", "_protobuf"]
cpp = ["symbolic-demangle/cpp"]
[dependencies]
backtrace = { git = "https://github.com/Jardynq/backtrace-rs" }
once_cell = "1.9"
libc = "^0.2.66"
log = "0.4"
nix = "0.23"
parking_lot = "0.12"
tempfile = "3.1"
thiserror = "1.0"
findshlibs = "0.10"
cfg-if = "1.0"
smallvec = "1.7"
inferno = { version = "0.11", default-features = false, features = ["nameattr"], optional = true }
prost = { version = "0.10", optional = true }
prost-derive = { version = "0.10", optional = true }
protobuf = { version = "2.0", optional = true }
criterion = {version = "0.3", optional = true}
[target.'cfg(windows)'.dependencies]
winproc = "0.6.4"
winapi = {version = "0.3", features = [
"processthreadsapi",
"winnt",
"errhandlingapi",
"winuser"
] }
[dependencies.symbolic-demangle]
version = "8.0"
default-features = false
features = ["rust"]
[dev-dependencies]
criterion = "0.3"
rand = "0.8.0"
[build-dependencies]
prost-build = { version = "0.10", optional = true }
protobuf-codegen-pure = { version = "2.0", optional = true }
[[example]]
name = "flamegraph"
required-features = ["flamegraph"]
[[example]]
name = "profile_proto"
required-features = ["protobuf"]
[[example]]
name = "multithread_flamegraph"
required-features = ["flamegraph"]
[[example]]
name = "criterion"
required-features = ["flamegraph", "criterion"]
[[bench]]
name = "collector"
path = "benches/collector.rs"
harness = false
[package.metadata.docs.rs]
all-features = true