{"id":16949453,"url":"https://github.com/tailhook/quick-error","last_synced_at":"2025-05-15T07:04:46.391Z","repository":{"id":52512667,"uuid":"42208426","full_name":"tailhook/quick-error","owner":"tailhook","description":"A rust-macro which makes errors easy to write","archived":false,"fork":false,"pushed_at":"2024-04-21T19:00:18.000Z","size":653,"stargazers_count":334,"open_issues_count":19,"forks_count":35,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-03T00:05:19.741Z","etag":null,"topics":["conversion","error","macro","reporting","rust"],"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/tailhook.png","metadata":{"files":{"readme":"README.rst","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-09T22:34:39.000Z","updated_at":"2025-04-18T20:56:30.000Z","dependencies_parsed_at":"2024-06-18T15:31:40.213Z","dependency_job_id":"28e86d79-e9d8-463c-9bfb-51806fc891c0","html_url":"https://github.com/tailhook/quick-error","commit_stats":{"total_commits":70,"total_committers":13,"mean_commits":5.384615384615385,"dds":0.3285714285714286,"last_synced_commit":"936a0683022e73086705de1985eccf5e69f5d5a0"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fquick-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fquick-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fquick-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailhook%2Fquick-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailhook","download_url":"https://codeload.github.com/tailhook/quick-error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036843,"owners_count":22003654,"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":["conversion","error","macro","reporting","rust"],"created_at":"2024-10-13T21:54:46.356Z","updated_at":"2025-05-15T07:04:41.380Z","avatar_url":"https://github.com/tailhook.png","language":"Rust","readme":"===========\nQuick Error\n===========\n\n:Status: production-ready\n:Documentation: https://docs.rs/quick-error/\n\nA macro which makes error types pleasant to write.\n\nFeatures:\n\n* Define enum type with arbitrary parameters\n* Concise notation of ``Display`` and ``Error`` traits\n* Full control of ``Display`` and ``Error`` trait implementation\n* Any number of ``From`` traits\n* Support for all enum-variants ``Unit``, ``Tuple`` and ``Struct``\n\nHere is the comprehensive example:\n\n.. code-block:: rust\n\n    quick_error! {\n        #[derive(Debug)]\n        pub enum IoWrapper {\n            Io(err: io::Error) {\n                from()\n                display(\"I/O error: {}\", err)\n                source(err)\n            }\n            Other(descr: \u0026'static str) {\n                display(\"Error {}\", descr)\n            }\n            IoAt { place: \u0026'static str, err: io::Error } {\n                source(err)\n                display(me) -\u003e (\"io error at {}: {}\", place, err)\n                from(s: String) -\u003e {\n                    place: \"some string\",\n                    err: io::Error::new(io::ErrorKind::Other, s)\n                }\n            }\n            Discard {\n                from(\u0026'static str)\n            }\n        }\n    }\n\n=======\nLicense\n=======\n\nLicensed under either of\n\n * Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)\n\nat your option.\n\n------------\nContribution\n------------\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Fquick-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailhook%2Fquick-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailhook%2Fquick-error/lists"}