37 releases
0.9.0 | Feb 26, 2025 |
---|---|
0.8.5 | Nov 8, 2024 |
0.8.4 | Oct 31, 2024 |
0.8.1 | Jul 3, 2024 |
0.3.0 | Jun 10, 2022 |
#46 in Operating systems
42,058 downloads per month
Used in 17 crates
(15 directly)
115KB
2K
SLoC
sysexits-rs
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.
Usage
Run the following command in your project directory:
cargo add sysexits
Crate features
extended_io_error
Enables features that depend on the io_error_inprogress
and the
io_error_more
features. This also enables std
. This is implied by nightly
.
nightly
Enables features that depend on the nightly Rust.
std
Enables features that depend on the standard library. This is enabled by default.
no_std
support
This supports no_std
mode. Disables the default
feature to enable this.
Documentation
See the documentation for more details.
Minimum supported Rust version
The minimum supported Rust version (MSRV) of this library is v1.85.0.
Source code
The upstream repository is available at https://github.com/sorairolake/sysexits-rs.git.
The source code is also available at:
Changelog
Please see CHANGELOG.adoc.
Contributing
Please see CONTRIBUTING.adoc.
Similar projects
- 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.
License
Copyright (C) 2022 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.