{"id":16567646,"url":"https://github.com/ducaale/exit_status","last_synced_at":"2025-06-16T10:34:19.344Z","repository":{"id":57626691,"uuid":"342030507","full_name":"ducaale/exit_status","owner":"ducaale","description":"a proc-macro that allows rust's main function to return an exit status code","archived":false,"fork":false,"pushed_at":"2021-02-24T21:35:47.000Z","size":5,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T05:58:37.709Z","etag":null,"topics":["proc-macro","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ducaale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-24T20:43:58.000Z","updated_at":"2021-11-01T04:03:57.000Z","dependencies_parsed_at":"2022-08-31T09:12:34.062Z","dependency_job_id":null,"html_url":"https://github.com/ducaale/exit_status","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fexit_status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fexit_status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fexit_status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducaale%2Fexit_status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducaale","download_url":"https://codeload.github.com/ducaale/exit_status/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238744015,"owners_count":19523220,"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":["proc-macro","rust"],"created_at":"2024-10-11T21:07:08.902Z","updated_at":"2025-02-13T22:31:57.624Z","avatar_url":"https://github.com/ducaale.png","language":"Rust","readme":"# exit_status\n[![Version info](https://img.shields.io/crates/v/exit_status.svg)](https://crates.io/crates/exit_status)\n\nSimple proc-macro for enabling rust main function to return an exit status code.\n\n## Example\n```rust\n#[exit_status::main]\nfn main() -\u003e anyhow::Result\u003ci32\u003e {\n    Ok(0)\n}\n\n// expands to\n// fn main() -\u003e anyhow::Result\u003c()\u003e {\n//     fn inner_main() -\u003e anyhow::Result\u003ci32\u003e {\n//         {\n//             Ok(0)\n//         }\n//     }\n//     std::process::exit(inner_main()?);\n// }\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducaale%2Fexit_status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducaale%2Fexit_status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducaale%2Fexit_status/lists"}