{"id":33941791,"url":"https://github.com/tismith/exitfailure","last_synced_at":"2026-04-08T14:32:41.376Z","repository":{"id":48430289,"uuid":"133226615","full_name":"tismith/exitfailure","owner":"tismith","description":"Helpers for easily using failure::Error and others as return types in main() while still giving human-readable error messages.","archived":false,"fork":false,"pushed_at":"2021-07-26T19:13:39.000Z","size":78,"stargazers_count":46,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T05:34:42.870Z","etag":null,"topics":["cli","exitfailure","failure","library","newtype","rust"],"latest_commit_sha":null,"homepage":"","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/tismith.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}},"created_at":"2018-05-13T10:26:06.000Z","updated_at":"2025-10-12T22:00:19.000Z","dependencies_parsed_at":"2022-08-31T05:40:48.004Z","dependency_job_id":null,"html_url":"https://github.com/tismith/exitfailure","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/tismith/exitfailure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tismith%2Fexitfailure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tismith%2Fexitfailure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tismith%2Fexitfailure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tismith%2Fexitfailure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tismith","download_url":"https://codeload.github.com/tismith/exitfailure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tismith%2Fexitfailure/sbom","scorecard":{"id":887749,"data":{"date":"2025-08-11","repo":{"name":"github.com/tismith/exitfailure","commit":"d48bae6e76652a0ba48f2db4917e78aa22ad77cd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T10:38:24.819Z","repository_id":48430289,"created_at":"2025-08-24T10:38:24.819Z","updated_at":"2025-08-24T10:38:24.819Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31559814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","exitfailure","failure","library","newtype","rust"],"created_at":"2025-12-12T16:55:36.427Z","updated_at":"2026-04-08T14:32:41.366Z","avatar_url":"https://github.com/tismith.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exitfailure - convenient newtype wrappers for using ? in main()\n\n[![Build Status](https://travis-ci.org/tismith/exitfailure.svg?branch=master)](https://travis-ci.org/tismith/exitfailure)\n[![Build status](https://ci.appveyor.com/api/projects/status/2xhxwps2swlj3git/branch/master?svg=true)](https://ci.appveyor.com/project/tismith/exitfailure/branch/master)\n[![codecov](https://codecov.io/gh/tismith/exitfailure/branch/master/graph/badge.svg)](https://codecov.io/gh/tismith/exitfailure)\n[![](http://meritbadge.herokuapp.com/exitfailure)](https://crates.io/crates/exitfailure)\n\n`exitfailure` provides some newtype wrappers to help with using ? in `main()`.\n\nIt is intended to be used with rust 1.26 and above's \"? in main()\" feature (see the [tracking issue here](https://github.com/rust-lang/rust/issues/43301)).\n\nThe primary items exported by this library are:\n\n - `ExitFailure`: a wrapper around `failure::Error` to allow ? printing from main\n    to present a nicer error message, including any available context and backtrace.\n\n - `ExitDisplay\u003cE\u003e`: a wrapper around `E: std::fmt::Display` to allow the error message\n    from main to use `Display` and not `Debug`.\n\nFor more information, including more details on the types, please see the [API Documentation](https://docs.rs/exitfailure/).\n\nExample:\n```rust\n#[macro use] extern crate failure;\nextern crate exitfailure;\n\nuse failure::ResultExt;\nuse exitfailure::ExitFailure;\n\nfn main() -\u003e Result\u003c(), ExitFailure\u003e {\n     Ok(some_fn()?)\n}\n\nfn some_fn() -\u003e Result\u003c(), failure::Error\u003e {\n     let error = Err(failure::err_msg(\"root cause failure\"));\n     Ok(error.context(\"this is some context\".to_string())?)\n}\n```\n\nThis will print, when executed:\n```ignore\nError: this is some context\nInfo: caused by root cause failure\n```\n\nIf the environment variable RUST_BACKTRACE=1 is set, then the printing will\ninclude whatever backtrace information is provided by the `failure::Error`\nthat is being wrapped.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftismith%2Fexitfailure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftismith%2Fexitfailure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftismith%2Fexitfailure/lists"}