From a91227c6430de279e1de7c75565b98c6129c900e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20H=C3=B6ner?= Date: Sun, 1 Sep 2024 19:18:58 +0200 Subject: [PATCH] Bump version to v0.7.0 --- CHANGELOG.md | 2 ++ Cargo.toml | 2 +- README.md | 13 +++++++------ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa5f0b7..d14b031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. ## Unreleased + +## [v0.7.0] (2024-09-XX) - Add `Backtrace` trait to abstract over backtrace implementation - Changed `Frame::ip` type `usize` -> `Option` - `BacktracePrinter::print_trace` now takes `&dyn Backtrace` instead of `&backtrace::Backtrace` diff --git a/Cargo.toml b/Cargo.toml index bd3a070..47891b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "color-backtrace" -version = "0.6.1" +version = "0.7.0" authors = ["Joel Höner "] edition = "2021" license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index 403dd76..5d54737 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ and printing the relevant source snippets. ```toml [dependencies] -color-backtrace = { version = "0.6" } +color-backtrace = { version = "0.7" } ``` To enable it, simply place this code somewhere in your app initialization code: @@ -42,15 +42,19 @@ BacktracePrinter::new().message("Custom message!").install(default_output_stream - Hide all the frames after the panic was already initiated - Hide language runtime initialization frames +### Screenshot + +![Screenshot](https://i.imgur.com/yzp0KH6.png) + ### Reducing transitive dependencies It is possible to use the alternative [`btparse`] backtrace capturing backend instead of the default route that links [`backtrace`]: -``` +```toml [dependencies] color-backtrace = { - version = "0.6", + version = "0.7", default-features = false, features = ["use-btparse-crate"], } @@ -124,6 +128,3 @@ mod tests { You can also do this outside of a `#[cfg(test)]` section, in which case the panic handler is installed for both test and regular runs. - -### Screenshot -![Screenshot](https://i.imgur.com/jLznHxp.png)