Skip to content

Commit 12d55ef

Browse files
authored
fix: we cannot pprof in windows (#74)
`pprof` is a "unix" only dependency. Even though we do not "use" it anywhere not protected by `cfg!`, it seems as though `cargo test` builds all dependencies, which `pprof` fails. Fix is simple, simply only include that dep on `unix` systems. Confirmed testing/building on my Windows machine. closes: #66
1 parent 9d99419 commit 12d55ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/hdx_lsp/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ tracing-subscriber = { workspace = true }
3838
[dev-dependencies]
3939
glob = { workspace = true }
4040
criterion = { workspace = true, features = ["html_reports"] }
41-
pprof = { workspace = true, features = ["flamegraph", "criterion"] }
4241
insta = { workspace = true, features = ["json"] }
4342
similar = { workspace = true }
4443
console = { workspace = true }
4544

45+
[target.'cfg(target_family = "unix")'.dev-dependencies]
46+
pprof = { workspace = true, features = ["flamegraph", "criterion"] }
47+
4648
[features]
4749
default = []
4850
fancy = ["miette/fancy-no-backtrace"]

0 commit comments

Comments
 (0)