Skip to content

Commit

Permalink
build: disable bench on windows,mac
Browse files Browse the repository at this point in the history
This temporarily disables building pprof dep and benches on windows
and macos because pprof crate only builds on unix/linux.

We can re-evaluate use of pprof in a future PR.
  • Loading branch information
dan-da committed Apr 5, 2022
1 parent f1b2ca1 commit a08aa89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ rustyline = "8.0.0"
bincode = "1.3.3"
criterion = "0.3.5"

[dev-dependencies.pprof]
# pprof is not building on windows, mac
[target."cfg(unix)".dev-dependencies.pprof]
version = "0.7.0"
features = [ "flamegraph" ]

Expand All @@ -49,6 +50,8 @@ criterion = "0.3.5"
[target."cfg(unix)".dev-dependencies]
termios = "0.3.3"

# pprof is not building on windows, mac
[target.'cfg(unix)']
[[bench]]
name = "reissue"
harness = false
Expand Down

0 comments on commit a08aa89

Please sign in to comment.