#tetcoin #framework #panic-hook #blockchain #crypto

panic-handler

Tetcore custom panic hook with bug report link

Show the crate…

3 stable releases

2.1.2 Jun 23, 2021
2.0.2 Apr 3, 2021
2.0.1 Mar 8, 2021
0.0.0 Mar 8, 2021

#19 in #panic-hook

Download history 222/week @ 2024-05-21 209/week @ 2024-05-28 184/week @ 2024-06-04 131/week @ 2024-06-11 280/week @ 2024-06-18 183/week @ 2024-06-25 2/week @ 2024-07-02 188/week @ 2024-07-09 231/week @ 2024-07-16 143/week @ 2024-07-23 225/week @ 2024-07-30 157/week @ 2024-08-06 144/week @ 2024-08-13 142/week @ 2024-08-20 195/week @ 2024-08-27 120/week @ 2024-09-03

604 downloads per month
Used in 54 crates (3 directly)

Apache-2.0

8KB
119 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

~2.4–8MB
~68K SLoC