#exit-code #sysexit

no-std sysexits

The system exit codes as defined by <sysexits.h>

35 releases

new 0.8.4 Oct 31, 2024
0.8.2 Sep 22, 2024
0.8.1 Jul 3, 2024
0.7.11 Jan 18, 2024
0.3.0 Jun 10, 2022

#53 in Operating systems

Download history 8110/week @ 2024-07-11 8747/week @ 2024-07-18 12461/week @ 2024-07-25 9623/week @ 2024-08-01 8518/week @ 2024-08-08 6462/week @ 2024-08-15 6428/week @ 2024-08-22 7406/week @ 2024-08-29 7723/week @ 2024-09-05 7267/week @ 2024-09-12 8202/week @ 2024-09-19 7735/week @ 2024-09-26 8272/week @ 2024-10-03 7295/week @ 2024-10-10 7525/week @ 2024-10-17 8932/week @ 2024-10-24

33,131 downloads per month
Used in 15 crates (13 directly)

Apache-2.0 OR MIT

115KB
2K SLoC

sysexits-rs

CI Version MSRV Docs License

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

Add this to your Cargo.toml:

[dependencies]
sysexits = "0.8.4"

Crate features

std

Enables features that depend on the standard library. This is enabled by default.

nightly

Enables features that depend on the nightly Rust.

extended_io_error

Enables features that depend on the io_error_more feature. This also enables std. This is implied by nightly.

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.74.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

You can discover more projects at https://github.com/sorairolake/awesome-sysexits.

License

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.

No runtime deps