{"id":23132055,"url":"https://github.com/natserract/rust-git-hooks","last_synced_at":"2026-04-30T00:02:06.362Z","repository":{"id":120760977,"uuid":"229489914","full_name":"natserract/rust-git-hooks","owner":"natserract","description":"🏄 Git hooks made easy with Rust","archived":false,"fork":false,"pushed_at":"2020-02-22T15:56:55.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T07:34:16.943Z","etag":null,"topics":["async-await","git","git-hooks","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natserract.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-12-21T22:22:06.000Z","updated_at":"2024-07-17T15:10:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"2197ac48-b84d-47f0-ba1c-82030d54de26","html_url":"https://github.com/natserract/rust-git-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/natserract/rust-git-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natserract%2Frust-git-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natserract%2Frust-git-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natserract%2Frust-git-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natserract%2Frust-git-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natserract","download_url":"https://codeload.github.com/natserract/rust-git-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natserract%2Frust-git-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: 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":["async-await","git","git-hooks","rust","rust-lang"],"created_at":"2024-12-17T11:16:51.910Z","updated_at":"2026-04-30T00:02:06.357Z","avatar_url":"https://github.com/natserract.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Git Hooks\nGit hooks are scripts that Git executes before or after events such as: commit, push, and receive. Git hooks are a built-in feature - no need to download anything. Git hooks are run locally.\n\n### How do git hooks work?\n\nEvery Git repository has a `.git/hooks` folder with a script for each hook you can bind to. You're free to change or update these scripts as necessary, and Git will execute them when those events occur.\n\nHere's a full list of hooks you can attach scripts to: [git hooks lists](https://githooks.com/).\n\n## Environments\n\n- rust -\u003e 1.0 (nightly channel)\n- git2 -\u003e \"0.10\"\n- time -\u003e \"0.1\"\n- futures -\u003e \"0.3.1\"\n\n## Running\n\nTo try the hooks, do the following to compile the hooks and symlink them into your git hooks folder.\n\n```sh\ncargo run\n```\n\nAnd then you will see the output like this:\n\n```sh\nLast Commit:\nId -\u003e ...\nMessage -\u003e ...\nCommitter Name -\u003e ...\nCommitter Email -\u003e ...\nTime -\u003e ...\nRaw -\u003e \"...\" \n\nBranch has been succesfully created! If you wanna check type command git branch -a\nBranch has been succesfully renamed! If you wanna check type command git branch -a\nBranch has been succesfully deleted! If you wanna check type command git branch -a\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatserract%2Frust-git-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatserract%2Frust-git-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatserract%2Frust-git-hooks/lists"}