sp-panic-handler

Crates.iosp-panic-handler
lib.rssp-panic-handler
version13.0.2
created_at2020-02-27 00:54:16.434567+00
updated_at2025-04-02 14:24:47.948088+00
descriptionCustom panic hook with bug report link
homepagehttps://paritytech.github.io/polkadot-sdk/
repositoryhttps://github.com/paritytech/polkadot-sdk.git
max_upload_size
id212898
size11,391
Parity Crate Owner (parity-crate-owner)

documentation

https://docs.rs/sp-panic-handler

README

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

Commit count: 19113

cargo fmt