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
9
type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
fn main() -> Result<()> {
    fn inner_main() -> Result<i32> {
        {
            Ok(0)
        }
    }
    std::process::exit(inner_main()?);
}