Back to Gems
rust-cli/proc-exit(opens in a new tab)
Language: Rust
Exit codes for process termination
- stars
- 29
- watchers
- 4
- forks
- 2
- open issues
- 2
- Last updated
- 10/05/2026
Language: Rust
Exit codes for process termination
Exit codes for process termination
i32 newtype for exit codes
main, std::process, and std::io::ErrorAdd to your Cargo.toml:
$ cargo add proc-exitOther crates that might be useful in testing command line programs.
assert_cmd can be reused to simplify controlling CLIsSome crates that fill a similar role include:
std::process and std::io::Errormaini32 constants and helper methodsmain, std::process, or std::io::Errori32 constants and helper methodsmain, std::process, or std::io::ErrorDisplayable errors to be used with ? in main()Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.