From a08aa89915a227ef0ad841a19cc7b873aee5187e Mon Sep 17 00:00:00 2001 From: danda Date: Sun, 3 Apr 2022 17:39:54 -0700 Subject: [PATCH] build: disable bench on windows,mac 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. --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index aa2db62..e9288e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" ] @@ -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