{"id":16376552,"url":"https://github.com/killercup/snafu-cli-debug","last_synced_at":"2025-07-29T08:31:45.435Z","repository":{"id":57667791,"uuid":"195820431","full_name":"killercup/snafu-cli-debug","owner":"killercup","description":"Implement Rust's Debug trait on Snafu errors for pretty CLI output","archived":false,"fork":false,"pushed_at":"2019-10-03T17:56:57.000Z","size":14,"stargazers_count":10,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T12:11:37.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/killercup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-08T13:43:55.000Z","updated_at":"2020-04-22T23:17:51.000Z","dependencies_parsed_at":"2022-09-10T16:01:01.017Z","dependency_job_id":null,"html_url":"https://github.com/killercup/snafu-cli-debug","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/killercup/snafu-cli-debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killercup%2Fsnafu-cli-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killercup%2Fsnafu-cli-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killercup%2Fsnafu-cli-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killercup%2Fsnafu-cli-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killercup","download_url":"https://codeload.github.com/killercup/snafu-cli-debug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killercup%2Fsnafu-cli-debug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267653190,"owners_count":24122149,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T03:25:07.866Z","updated_at":"2025-07-29T08:31:45.149Z","avatar_url":"https://github.com/killercup.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Derive Debug implementation on Snafu Errors that make pretty output\n\n## What\n\nThe challenge: Error handling in Rust.  \nThe approach: Embrace `Result`s!  \nThe problem: It's not easy to give add nice contexts to errors.  \nThe solution: [Snafu](https://docs.rs/snafu)!\n\nThe challenge: Printing errors in CLI apps.  \nThe approach: Embrace `fn main() -\u003e Result\u003c(), Error\u003e`!  \nThe problem: It prints using `Debug`, i.e., like `println!(\"{:?}\", error)`.  \nThe solution: This crate!\n\n## Usage\n\nSee example.\n\n## Output\n\n```console\n$ cargo run --example simple -q -- foo\nError: Can't read file `foo`\n        cause: No such file or directory (os error 2)\n```\n\n```console\n$ cargo run --example simple -q -- foo\nError: Can't read file `foo`\n        cause: No such file or directory (os error 2)\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([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\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillercup%2Fsnafu-cli-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillercup%2Fsnafu-cli-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillercup%2Fsnafu-cli-debug/lists"}