19 releases (5 major breaking)

7.0.0 Feb 26, 2023
6.0.0 Dec 14, 2022
5.0.0 Nov 16, 2022
4.0.0 Dec 13, 2021
2.0.0-alpha.5 Mar 24, 2020

#1319 in Magic Beans

Download history 5095/week @ 2022-12-09 4929/week @ 2022-12-16 2982/week @ 2022-12-23 1999/week @ 2022-12-30 3939/week @ 2023-01-06 3423/week @ 2023-01-13 5023/week @ 2023-01-20 5142/week @ 2023-01-27 5184/week @ 2023-02-03 4150/week @ 2023-02-10 5406/week @ 2023-02-17 7963/week @ 2023-02-24 5785/week @ 2023-03-03 4081/week @ 2023-03-10 4703/week @ 2023-03-17 4515/week @ 2023-03-24

19,756 downloads per month
Used in 199 crates (3 directly)

Apache-2.0

9KB
162 lines

Custom panic hook with bug report link

This crate provides the [set] function, which wraps around [std::panic::set_hook] and sets up a panic hook that prints a backtrace and invites the user to open an issue to the given URL.

By default, the panic handler aborts the process by calling [std::process::exit]. This can temporarily be disabled by using an [AbortGuard].

License: Apache-2.0


lib.rs:

Custom panic hook with bug report link

This crate provides the [set] function, which wraps around [std::panic::set_hook] and sets up a panic hook that prints a backtrace and invites the user to open an issue to the given URL.

By default, the panic handler aborts the process by calling [std::process::exit]. This can temporarily be disabled by using an [AbortGuard].

Dependencies

~5MB
~116K SLoC