1 2 3 4 5 6 7 8 9 10 11 12 13 14
use lssd::driver; fn abort_on_panic() { let old = std::panic::take_hook(); std::panic::set_hook(Box::new(move |info| { old(info); std::process::abort(); })); } fn main() -> Result<(), Box<dyn std::error::Error>> { abort_on_panic(); driver::start() }