sysexits-rs (sysexits
) is a library that provides the
system exit code constants as defined by <sysexits.h>
.
This library implements the Termination
trait, so this can be returned from
the main
function.
Add this to your Cargo.toml
:
[dependencies]
sysexits = "0.8.5"
Enables features that depend on the standard library. This is enabled by default.
Enables features that depend on the nightly Rust.
Enables features that depend on the io_error_more
feature. This also enables
std
. This is implied by nightly
.
This supports no_std
mode. Disables the default
feature to enable this.
See the documentation for more details.
The minimum supported Rust version (MSRV) of this library is v1.62.0.
The upstream repository is available at https://github.com/sorairolake/sysexits-rs.git.
The source code is also available at:
Please see CHANGELOG.adoc.
Please see CONTRIBUTING.adoc.
- https://github.com/sorairolake/Sysexits.jl (Julia)
- https://github.com/sorairolake/sysexits-zig (Zig)
You can discover more projects at https://github.com/sorairolake/awesome-sysexits.
Copyright © 2022–2024 Shun Sakai and other contributors (see AUTHORS.adoc)
This library is distributed under the terms of either the Apache License 2.0 or the MIT License.
This project is compliant with version 3.2 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.