{"id":20392098,"url":"https://github.com/rust-cli/proc-exit","last_synced_at":"2025-04-09T07:06:16.597Z","repository":{"id":52403518,"uuid":"314422601","full_name":"rust-cli/proc-exit","owner":"rust-cli","description":"Exit codes for process termination","archived":false,"fork":false,"pushed_at":"2025-02-20T18:11:52.000Z","size":208,"stargazers_count":24,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T06:06:56.970Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"docs.rs/proc-exit","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-cli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-20T02:15:45.000Z","updated_at":"2025-02-20T18:11:56.000Z","dependencies_parsed_at":"2024-02-09T17:49:42.158Z","dependency_job_id":"edf11cd3-afc6-4fac-b59b-9aaf29058a09","html_url":"https://github.com/rust-cli/proc-exit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fproc-exit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fproc-exit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fproc-exit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-cli%2Fproc-exit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-cli","download_url":"https://codeload.github.com/rust-cli/proc-exit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994119,"owners_count":21030050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T03:39:21.802Z","updated_at":"2025-04-09T07:06:16.571Z","avatar_url":"https://github.com/rust-cli.png","language":"Rust","readme":"# proc-exit\n\n\u003e Exit codes for process termination\n\n[![codecov](https://codecov.io/gh/rust-cli/proc-exit/branch/master/graph/badge.svg)](https://codecov.io/gh/rust-cli/proc-exit)\n[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)][Documentation]\n![License](https://img.shields.io/crates/l/proc-exit.svg)\n[![Crates Status](https://img.shields.io/crates/v/proc-exit.svg)][Crates.io]\n\n## Features\n\n- `i32` newtype for exit codes\n  - Can represent any valid exit code\n  - Type safe, operations are restricted to what is valid for exit codes\n- Includes standard exit codes and signal exit codes\n- Integrate with `main`, `std::process`, and `std::io::Error`\n- Supports exiting silently (error message reported through another means)\n\n## Install\n\nAdd to your `Cargo.toml`:\n\n```console\n$ cargo add proc-exit\n```\n\n## Relevant crates\n\nOther crates that might be useful in testing command line programs.\n- [duct][duct] for orchestrating multiple processes.\n  - or [commandspec][commandspec] for easier writing of commands\n- [rexpect][rexpect] for controlling interactive programs.\n- [`assert_cmd`][assert_cmd] can be reused to simplify controlling CLIs\n\n[duct]: https://crates.io/crates/duct\n[rexpect]: https://crates.io/crates/rexpect\n[assert_cmd]: https://crates.io/crates/assert_cmd\n[commandspec]: https://crates.io/crates/commandspec\n\n## Related crates\n\nSome crates that fill a similar role include:\n- [sysexit][sysexit]\n  - Uses an enum, making certain states unpresentable\n  - Includes signals\n  - Integrates with `std::process` and `std::io::Error`\n  - Doesn't integrate with `main`\n- [exit-code][exit-code]\n  - `i32` constants and helper methods\n  - Doesn't include signals\n  - Doesn't integrate with `main`, `std::process`, or `std::io::Error`\n- [exitcode][exitcode]\n  - `i32` constants and helper methods\n  - Doesn't include signals\n  - Doesn't integrate with `main`, `std::process`, or `std::io::Error`\n- [exitfailure][exitfailure]\n  - Allows `Display`able errors to be used with [`?` in `main()`](https://github.com/rust-lang/rust/issues/43301)\n\n[sysexit]: https://crates.io/crates/sysexit\n[exit-code]: https://crates.io/crates/exit-code\n[exitcode]: https://crates.io/crates/exitcode\n[exitfailure]: https://crates.io/crates/exitfailure\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n\n[Crates.io]: https://crates.io/crates/proc-exit\n[Documentation]: https://docs.rs/proc-exit\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-cli%2Fproc-exit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-cli%2Fproc-exit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-cli%2Fproc-exit/lists"}