use-exit-code 0.0.1

Portable exit status primitives for RustUse CLI-adjacent code
Documentation
  • Coverage
  • 100%
    16 out of 16 items documented1 out of 8 items with examples
  • Size
  • Source code size: 6.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 461.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-cli
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-exit-code

Portable exit status primitives for RustUse CLI-adjacent code.

use-exit-code keeps common process exit meanings explicit while staying small and platform-aware.

Example

use use_exit_code::{CONFIG_ERROR, ExitCode, SUCCESS};

let success = ExitCode::from_u8(0);

assert_eq!(success, SUCCESS);
assert_eq!(CONFIG_ERROR.as_i32(), 78);

Scope

This crate does not spawn processes, inspect child status values, or manage application shutdown.