Skip to content

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.

Notifications You must be signed in to change notification settings

fluidity-money/stylus-panic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages