{"id":17100639,"url":"https://github.com/jakobhellermann/bevycheck","last_synced_at":"2025-05-07T00:02:25.180Z","repository":{"id":53806715,"uuid":"346407216","full_name":"jakobhellermann/bevycheck","owner":"jakobhellermann","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-07T20:32:23.000Z","size":45,"stargazers_count":84,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T13:17:15.089Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakobhellermann.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-10T15:46:17.000Z","updated_at":"2024-11-11T07:56:25.000Z","dependencies_parsed_at":"2024-10-31T13:12:00.201Z","dependency_job_id":null,"html_url":"https://github.com/jakobhellermann/bevycheck","commit_stats":{"total_commits":41,"total_committers":4,"mean_commits":10.25,"dds":0.1707317073170732,"last_synced_commit":"ed3cb6c089f81e47dd473ed69de8380b0604286a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fbevycheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fbevycheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fbevycheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fbevycheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobhellermann","download_url":"https://codeload.github.com/jakobhellermann/bevycheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788514,"owners_count":21804284,"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":[],"created_at":"2024-10-14T15:14:19.301Z","updated_at":"2025-05-07T00:02:24.665Z","avatar_url":"https://github.com/jakobhellermann.png","language":"Rust","funding_links":[],"categories":["Plugins and Crates"],"sub_categories":["Development tools"],"readme":"# bevycheck\n\nBevycheck helps debug bevy errors by adding procedural macros which aid the compiler in emitting better compilation errors.\n\nIf you get an error like ``the trait `IntoSystem\u003c(), (), _\u003e` is not implemented for fn item `for\u003c'a\u003e fn(bevy::prelude::ResMut\u003c'a, [type error]\u003e) {system}``, simply add `#[bevycheck::system]` to your function, and a more helpful error messages should appear:\n\n\n```rust\n#[bevycheck::system]\nfn system(commands: \u0026mut Commands, query: Query\u003c(Entity, \u0026GlobalTransform)\u003e) {\n    // ...\n}\n```\n\n## How does it work?\n\nIt works by replacing\n```rust\nfn system(commands: \u0026mut Commands, query: Query\u003c(Entity, \u0026GlobalTransform)\u003e) {\n  // ...\n}\n```\nwith\n```rust\nfn system() {\n  assert_is_system_param::\u003c\u0026mut Commands\u003e();\n  assert_is_system_param::\u003cQuery\u003c(Entity, \u0026GlobalTransform)\u003e\u003e();\n  panic!(\"remove bevycheck before running\");\n}\n```\nThat way, without parameters the system is a valid system and the `add_system` call doesn't error anymore, and by asserting that each specific parameter must be a valid system param,\nrust can figure out which one's the culprit and print a more directed error message.\n\n\n## Bevy support table\n\n|bevy|bevycheck|\n|---|---|\n|0.10|0.5|\n|0.9|0.4|\n|0.7|0.3|\n|0.6|0.2|\n|0.5|0.1|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fbevycheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobhellermann%2Fbevycheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fbevycheck/lists"}