{"id":18443205,"url":"https://github.com/mkroening/count-unsafe","last_synced_at":"2025-08-20T18:57:04.489Z","repository":{"id":143180193,"uuid":"615040135","full_name":"mkroening/count-unsafe","owner":"mkroening","description":"Recursively count unsafe Rust code in a given path.","archived":false,"fork":false,"pushed_at":"2025-08-18T11:22:06.000Z","size":66,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T13:24:31.320Z","etag":null,"topics":["count","rust","unsafe"],"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/mkroening.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-16T20:38:43.000Z","updated_at":"2025-08-18T11:22:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4caf508-4cd9-4722-ac04-edb9598c7964","html_url":"https://github.com/mkroening/count-unsafe","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mkroening/count-unsafe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcount-unsafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcount-unsafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcount-unsafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcount-unsafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkroening","download_url":"https://codeload.github.com/mkroening/count-unsafe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkroening%2Fcount-unsafe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271369133,"owners_count":24747790,"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-08-20T02:00:09.606Z","response_time":69,"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":["count","rust","unsafe"],"created_at":"2024-11-06T06:46:38.760Z","updated_at":"2025-08-20T18:57:04.439Z","avatar_url":"https://github.com/mkroening.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# count-unsafe\n\n[![Crates.io](https://img.shields.io/crates/v/count-unsafe)](https://crates.io/crates/count-unsafe)\n[![CI](https://github.com/mkroening/count-unsafe/actions/workflows/ci.yml/badge.svg)](https://github.com/mkroening/count-unsafe/actions/workflows/ci.yml)\n\nCount-unsafe counts the amount of unsafe Rust code in a given path.\n\nThis project is built on the [geiger] library.\nIn contrast to [cargo-geiger] though, this application does not integrate with cargo and simply counts unsafe code in all Rust source files in a given path.\n\n[geiger]: https://crates.io/crates/geiger\n[cargo-geiger]: https://crates.io/crates/cargo-geiger\n\n## Installation\n\nThis project is available on [crates.io]:\n\n[crates.io]: https://crates.io/crates/count-unsafe\n\n```console\ncargo install count-unsafe\n```\n\n## Example\n\nRunning count-unsafe on Cargo's source ([0.69.0]):\n\n[0.69.0]: https://github.com/rust-lang/cargo/tree/0.69.0\n\n```console\n$ count-unsafe cargo/src\n{\n  \"functions\": {\n    \"safe\": 759,\n    \"unsafe_\": 2\n  },\n  \"exprs\": {\n    \"safe\": 50434,\n    \"unsafe_\": 238\n  },\n  \"item_impls\": {\n    \"safe\": 549,\n    \"unsafe_\": 0\n  },\n  \"item_traits\": {\n    \"safe\": 16,\n    \"unsafe_\": 0\n  },\n  \"methods\": {\n    \"safe\": 1804,\n    \"unsafe_\": 0\n  }\n}\n```\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%2Fmkroening%2Fcount-unsafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkroening%2Fcount-unsafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkroening%2Fcount-unsafe/lists"}