build(obs): restrict pyroscope dependency to unix targets (#2064)

This commit is contained in:
houseme
2026-03-03 20:41:37 +08:00
committed by GitHub
parent ac4b13def1
commit 5e7495a042
2 changed files with 4 additions and 6 deletions
+3 -1
View File
@@ -56,9 +56,11 @@ tracing-subscriber = { workspace = true, features = ["registry", "std", "fmt", "
tokio = { workspace = true, features = ["sync", "fs", "rt-multi-thread", "rt", "time", "macros"] }
sysinfo = { workspace = true }
thiserror = { workspace = true }
pyroscope = { workspace = true, features= ["backend-pprof-rs"]}
walkdir = { workspace = true }
[target.'cfg(unix)'.dependencies]
pyroscope = { workspace = true, features = ["backend-pprof-rs"] }
[dev-dependencies]
tokio = { workspace = true, features = ["full"] }