#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

#18 in #panic-hook

Download history 145/week @ 2024-07-22 175/week @ 2024-07-29 204/week @ 2024-08-05 145/week @ 2024-08-12 140/week @ 2024-08-19 187/week @ 2024-08-26 113/week @ 2024-09-02 146/week @ 2024-09-09 145/week @ 2024-09-16 205/week @ 2024-09-23 127/week @ 2024-09-30 7/week @ 2024-10-07 101/week @ 2024-10-14 146/week @ 2024-10-21 98/week @ 2024-10-28 129/week @ 2024-11-04

474 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.3–7.5MB
~67K SLoC