tock / libtock-rs

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

Enable `small_panic` in release mode #553

Closed alevy closed 5 months ago

alevy commented 5 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.