Registry / utility / panic-message

panic-message

JSON →
library0.3.0rscratesunverified

Get a panic message from a panic payload.

# Cargo.toml [dependencies] panic-message = "0.3.0"
INSTALL
IMPORT
SIG · PANIC-MESSAGE
P
panic-message
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

panic_message
use panic_message::panic_message;

Extract the message from a panic payload.

use panic_message::panic_message; fn main() { let payload = std::panic::catch_unwind(|| panic!("oops")).unwrap_err(); let msg = panic_message(&payload); println!("{}", msg); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
panic-message — cargo add panic-message · libregistry