Skip to content

Commit

Permalink
ci: fix cargo bench error
Browse files Browse the repository at this point in the history
CI was failing running
   `cargo bench -- --output-format bencher | tee output.txt`

The issue and solution is discussed here:
https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
  • Loading branch information
dan-da committed Nov 28, 2022
1 parent 7c79a7e commit f6e05cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kindelia_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ kindelia_core = { path="../kindelia_core" }
reqwest = { version = "0.11", features = ["json"] }
serde = { version = "1.0.137", features = ["derive"] }

# see https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
[lib]
bench = false
4 changes: 4 additions & 0 deletions kindelia_ws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ serde = { version = "1.0.137", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.19.1", features = ["full"] }
warp = "0.3"

# see https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
[lib]
bench = false

0 comments on commit f6e05cf

Please sign in to comment.