For single-box projects, adding these lines to Cargo.toml works as expected.
[profile.release] panic = "abort"
Then create a project:
cargo build --release
However, in a project that indirectly used dependencies, I get an error message.
Compiling c_vec v1.0.12 error: the linked panic runtime `panic_unwind` is not compiled with this crate panic strategy `abort` error: aborting due to previous error Build failed, waiting for other jobs to finish... error: Could not compile `c_vec`.
The c_vec box is an indirectly used dependency.
How to use panic=abort in a project with multiple drawers without conflicts?
Details that they matter:
- Rustc 1.12.0
- Library with the question: lodepng-rust
- Linux 64bit
rust rust-cargo
ideasman42
source share