mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
libservo: Make background hang monitor integration optional. (#35256)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
c4f4d5cc04
commit
cdd6660113
4 changed files with 12 additions and 5 deletions
|
@ -23,9 +23,12 @@ libc = { workspace = true }
|
|||
log = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
|
||||
[features]
|
||||
sampler = ["unwind-sys", "mach2"]
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
mach2 = "0.4"
|
||||
mach2 = { version = "0.4", optional = true }
|
||||
|
||||
[target.'cfg(all(target_os = "linux", not(any(target_arch = "arm", target_arch = "aarch64", target_env = "ohos", target_env = "musl"))))'.dependencies]
|
||||
nix = { workspace = true, features = ["signal"] }
|
||||
unwind-sys = "0.1.4"
|
||||
unwind-sys = { version = "0.1.4", optional = true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue