Skip to content

Commit

Permalink
Bump version to v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
athre0z committed Sep 1, 2024
1 parent 759c1b2 commit a91227c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<usize>`
- `BacktracePrinter::print_trace` now takes `&dyn Backtrace` instead of `&backtrace::Backtrace`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "color-backtrace"
version = "0.6.1"
version = "0.7.0"
authors = ["Joel Höner <athre0z@zyantific.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"],
}
Expand Down Expand Up @@ -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)

0 comments on commit a91227c

Please sign in to comment.