termination 0.1.2

Library that exposes Termination trait, similar to std::process::Termination.
Documentation
1
2
3
4
5
6
7
8
9
10
// Result<(), E> where E: Display
// Ok(()) will do nothing and return 0
// Err(E) will print E to stderr and return 1

use termination::display;

#[display]
fn main() -> Result<(), String> {
    Ok(())
}