Registry / utility / console-error-panic-hook

console-error-panic-hook

JSON →
library0.1.7rscratesunverified

A panic hook for `wasm32-unknown-unknown` that logs panics to `console.error`.

# Cargo.toml [dependencies] console_error_panic_hook = "0.1.7"
INSTALL
IMPORT
SIG · CONSOLE-ERROR-PANI
C
console-error-panic-hook
utilityrustv0.1.7
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.

set_once
use console_error_panic_hook::set_once;

Set the panic hook to log to console.error in WASM.

use console_error_panic_hook::set_once; fn main() { set_once(); // Your code here }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
console-error-panic-hook — cargo add console-error-panic-hook · libregistry