Convenient panic catcher and scoped panic hooks infrastructure
This crate provides convenient API for obtaining panic info after unwinding
let result = catch_panic;
if let Err = result
This will either produce normal result of closure or or conveniently gathered panic info, which includes panic location, message, raw payload and backtrace
Useful modules
hook- raw scoped hook APIspanic- all types and functions relevant to capturing panics, including some advanced features
Development
Project uses cargo-xtask pattern.
Run cargo xtask to see available commands
TODO
Test no-unwind cases