{"id":40665520,"url":"https://github.com/backplane/pre-commit-rust-hooks","last_synced_at":"2026-01-21T09:08:47.945Z","repository":{"id":219149991,"uuid":"616333739","full_name":"backplane/pre-commit-rust-hooks","owner":"backplane","description":"pre-commit hooks for Rust","archived":false,"fork":false,"pushed_at":"2025-04-30T15:19:19.000Z","size":25,"stargazers_count":3,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T16:29:05.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/backplane.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}},"created_at":"2023-03-20T07:20:05.000Z","updated_at":"2025-04-30T15:19:18.000Z","dependencies_parsed_at":"2024-01-25T19:06:37.266Z","dependency_job_id":null,"html_url":"https://github.com/backplane/pre-commit-rust-hooks","commit_stats":null,"previous_names":["backplane/pre-commit-rust-hooks"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/backplane/pre-commit-rust-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backplane%2Fpre-commit-rust-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backplane%2Fpre-commit-rust-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backplane%2Fpre-commit-rust-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backplane%2Fpre-commit-rust-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/backplane","download_url":"https://codeload.github.com/backplane/pre-commit-rust-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/backplane%2Fpre-commit-rust-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28630940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-21T09:08:46.464Z","updated_at":"2026-01-21T09:08:47.937Z","avatar_url":"https://github.com/backplane.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit hooks for Rust\n\n[Rust](https://www.rust-lang.org) hooks for [pre-commit](https://pre-commit.com).\n\nThis repo was inspired by the pre-commit hooks found in [`doublify/pre-commit-rust`](https://github.com/doublify/pre-commit-rust) on 20-Mar-2023.\n\nThe code here is released with the [`0BSD`](https://opensource.org/license/0bsd/) license.\n\n## Using the hooks\n\nAdd the following entry to your `.pre-commit.yml`\n\n```yaml\n-   repo: https://github.com/backplane/pre-commit-rust-hooks\n    rev: v1.2.0\n    hooks:\n    -   id: fmt\n    -   id: check\n    -   id: clippy\n    -   id: test\n```\n\nNote: The id `fmt-check` is also available if you don't want automatic changes.\n\n## Passing arguments:\n\nIf you pass an `args` list to a hook that receives filename arguments you should end that list with the `--` terminator (see below).\n\n* The `fmt` and `fmt-check` hooks receive a list of filenames at the end of their arguments.\n* The `check`, `clippy`, and `test` hooks do not receive a list of filenames as arguments.\n\n```yaml\n-   repo: https://github.com/backplane/pre-commit-rust-hooks\n    rev: v1.2.0\n    hooks:\n    -   id: fmt\n        args: ['--verbose', '--edition', '2018', '--']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackplane%2Fpre-commit-rust-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbackplane%2Fpre-commit-rust-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbackplane%2Fpre-commit-rust-hooks/lists"}