Crates.io | throw_panic_hook |
lib.rs | throw_panic_hook |
version | 0.1.0 |
source | src |
created_at | 2023-12-15 22:03:26.403086 |
updated_at | 2023-12-15 22:03:26.403086 |
description | 💥 Panic hook for Rust WASM that throws an error |
homepage | |
repository | https://github.com/jcbhmr/throw_panic_hook |
max_upload_size | |
id | 1071321 |
size | 4,108 |
throw
panic hook
cargo add throw_panic_hook
// lib.rs
pub fn do_thing() {
throw_panic_hook::set_once();
// ... rest of Rust code
}
pub fn do_other_thing() {
throw_panic_hook::set_once();
// ... rest of Rust code
}