exit_status 0.1.0

Simple proc-macro for enabling rust main function to return an exit status code
Documentation
1
2
3
4
5
6
7
8
fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
    fn inner_main() -> std::result::Result<i32, Box<dyn std::error::Error>> {
        {
            Ok(0)
        }
    }
    std::process::exit(inner_main()?);
}