thread_local_panic_hook/
lib.rs

1//! This crate provides a wrapper around `std::panic::{set_hook, take_hook, update_hook}`
2//! that work per thread.
3//!
4//! When building for a wasm, we just re-export the original methods found in the std library.
5
6#[cfg(not(target_family = "wasm"))]
7mod panic;
8
9#[cfg(target_family = "wasm")]
10mod panic {
11    pub use std::panic::{set_hook, take_hook, update_hook};
12}
13
14pub use panic::*;