tock / libtock-rs

Rust userland library for Tock
Apache License 2.0
163 stars 109 forks source link

Enable `small_panic` in release mode #553

Closed alevy closed 3 months ago

alevy commented 3 months ago

panic_handler/small_panic is significantly smaller than the current default panic_handler/debug_panic since it doesn't bother formatting a panic message, instead using the low-level-debugger and exiting.

However, it's not actually used anywhere (maybe downstream?)!

This PR uses small_panic in release mode and debug_panic in debug mode. There is a pretty substantial drop in code size for most examples.