1 unstable release
0.2.2 | Jul 30, 2024 |
---|
#16 in #panic-hook
Used in mavryk-smart-rollup-entry…
33KB
440 lines
Mavryk Smart Rollup Kernel SDK - panic hook
The panic hook may be used to capture kernel panics, and write them to the debug log. Execution is then aborted, to ensure no further issues could arise.
To disable execution abortion (which prevents panic unwinding) disable the abort
feature flag.
To prevent writing the panic info to the debug log (which requires an allocator for formatting) disable the debug
feature flag.
lib.rs
:
Hook to capture kernel panics, and write them to the debug log.
The hook will abort execution once the panic has been printed to the debug log.