#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

#17 in #panic-hook

Download history 201/week @ 2024-01-10 184/week @ 2024-01-17 103/week @ 2024-01-24 144/week @ 2024-01-31 143/week @ 2024-02-07 209/week @ 2024-02-14 120/week @ 2024-02-21 202/week @ 2024-02-28 300/week @ 2024-03-06 168/week @ 2024-03-13 287/week @ 2024-03-20 461/week @ 2024-03-27 250/week @ 2024-04-03 217/week @ 2024-04-10 286/week @ 2024-04-17 216/week @ 2024-04-24

1,069 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–3.5MB
~72K SLoC