-
Notifications
You must be signed in to change notification settings - Fork 182
Expand file tree
/
Copy pathCargo.toml
More file actions
87 lines (72 loc) · 2.34 KB
/
Copy pathCargo.toml
File metadata and controls
87 lines (72 loc) · 2.34 KB
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
85
86
87
[package]
name = "datadog-php-profiling"
version = "0.0.0"
edition = "2021"
license = "Apache-2.0"
rust-version = "1.87.0"
[profile.release]
panic = "abort"
[lib]
crate-type = ["cdylib"]
bench = false # disables cargo build in libtest bench
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = { version = "1.0" }
cpu-time = { version = "1.0" }
chrono = { version = "0.4" }
crossbeam-channel = { version = "0.5", default-features = false, features = ["std"] }
dashmap = { version = "6.2.1" }
dynasmrt = "5.0.0"
http = { version = "1.4" }
libdd-alloc = { path = "../libdatadog/libdd-alloc" }
libdd-profiling = { path = "../libdatadog/libdd-profiling" }
libdd-common = { path = "../libdatadog/libdd-common" }
libdd-library-config-ffi = { path = "../libdatadog/libdd-library-config-ffi" }
env_logger = { version = "0.11", default-features = false }
libc = "0.2"
# TRACE set to max to support runtime configuration.
log = { version = "0.4", features = ["max_level_trace", "release_max_level_trace"]}
serde_json = {version = "1.0"}
rand = { version = "0.9.4" }
rand_distr = { version = "0.5.1" }
rustc-hash = "2.1.3"
thiserror = "2"
tracing = { version = "0.1", optional = true }
uuid = { version = "1.0", features = ["v4"] }
[target.'cfg(target_vendor = "apple")'.dependencies]
mach2 = "0.6.0"
[dependencies.tracing-subscriber]
version = "0.3"
optional = true
default-features = false
# Build without tracing-log to avoid hijacking existing log events, for now.
features = ["env-filter", "fmt", "smallvec", "std"]
[dev-dependencies]
criterion = { version = "0.5.1" }
datadog-php-profiling = { path = ".", features = ["test"] }
static_assertions = "1"
[target.'cfg(target_arch = "x86_64")'.dev-dependencies]
criterion-perf-events = "0.4.0"
perfcnt = "0.8.0"
[[bench]]
name = "stack_walking"
harness = false
[[bench]]
name = "heap_live_tracking"
harness = false
[features]
default = ["io_profiling"]
debug_stats = []
io_profiling = []
stack_walking_tests = []
test = []
# Not for prod:
tracing = ["dep:tracing"]
tracing-subscriber = ["tracing", "dep:tracing-subscriber"]
trigger_time_sample = []
[build-dependencies]
bindgen = { version = "0.72.1" }
cc = { version = "1.0" }
# profiling release options in root Cargo.toml
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(stack_walking_tests)'] }