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
19,756 downloads per month
Used in 199 crates
(3 directly)
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