The following error is obtained when running cargo bench, with the a panic = "abort" option in cargo.toml:
error: the linked panic runtime `panic_unwind` is not compiled with this crate's panic strategy `abort`
The cargo.toml needs to set the panic behavior in [profile.bench], e.g.:
cargo.toml:
[package]
name = "foobar"
version = "0.1.0"
authors = ["Aaron Friel <mayreply@aaronfriel.com>"]
[dependencies]
clap="^2.13.0"
[profile.bench]
panic = "abort"
The following error is obtained when running
cargo bench, with the apanic = "abort"option incargo.toml:The
cargo.tomlneeds to set the panic behavior in[profile.bench], e.g.:cargo.toml: