Crates.io | panic-handler |
lib.rs | panic-handler |
version | 2.1.2 |
source | src |
created_at | 2021-03-08 06:40:21.746692 |
updated_at | 2021-06-23 01:42:56.428911 |
description | Tetcore custom panic hook with bug report link |
homepage | https://core.tetcoin.org |
repository | https://github.com/tetcoin/tetcore |
max_upload_size | |
id | 365561 |
size | 7,830 |
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