stylus-panic

Crates.iostylus-panic
lib.rsstylus-panic
version0.4.1
created_at2025-10-04 13:32:59.401724+00
updated_at2025-10-08 03:53:27.585676+00
descriptionstylus-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.
homepagehttps://github.com/fluidity-money/stylus-panic
repositoryhttps://github.com/fluidity-money/stylus-panic
max_upload_size
id1867899
size13,438
Bayge (af-afk)

documentation

README

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.

Commit count: 0

cargo fmt