4 releases (2 breaking)
Uses new Rust 2024
| new 0.4.1 | Oct 8, 2025 |
|---|---|
| 0.4.0 | Oct 8, 2025 |
| 0.3.0 | Oct 6, 2025 |
| 0.2.0 |
|
| 0.1.0 | Oct 4, 2025 |
#109 in Magic Beans
87 downloads per month
5KB
64 lines
Stylus-panic
stylus-panic is a panic handler that's available for no_std environments that uses stylus-interpreter's die function if it's available. It also provides a helpful console logger macro.
Using harness_dbg
harness_dbg!("Hello", "world");
Will use the console function, if the stylus-interpreter feature is enabled, to work
similarly to dbg!.
The panic handler
The panic handler will be registered if the std feature is not enabled. It will use the
die stylus-interpreter function if the stylus-interpreter feature is enabled.
Dependencies
~5.5MB
~98K SLoC