#panic-hook #throw #error

yanked throw_panic_hook

💥 Panic hook for Rust WASM that throws an error

1 unstable release

0.1.0 Dec 15, 2023

#18 in #panic-hook

MIT license

3KB

throw panic hook

Installation

cargo add throw_panic_hook

Usage

// 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
}

Dependencies

~0.7–1.3MB
~27K SLoC