{"id":19494711,"url":"https://github.com/ceejbot/git-latest-commit","last_synced_at":"2026-06-11T04:31:36.043Z","repository":{"id":62439520,"uuid":"72300240","full_name":"ceejbot/git-latest-commit","owner":"ceejbot","description":"Makes a file available to a Rust project at build time containing the latest commit's sha and summary as static vars.","archived":false,"fork":false,"pushed_at":"2016-11-19T15:15:09.000Z","size":14,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T03:56:38.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceejbot.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":"2016-10-29T17:46:34.000Z","updated_at":"2017-02-13T15:43:10.000Z","dependencies_parsed_at":"2022-11-01T22:15:57.036Z","dependency_job_id":null,"html_url":"https://github.com/ceejbot/git-latest-commit","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/ceejbot%2Fgit-latest-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fgit-latest-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fgit-latest-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fgit-latest-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceejbot","download_url":"https://codeload.github.com/ceejbot/git-latest-commit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240740171,"owners_count":19849893,"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-11-10T21:32:13.446Z","updated_at":"2026-06-11T04:31:36.036Z","avatar_url":"https://github.com/ceejbot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-latest-commit\n\n[![crate](https://img.shields.io/crates/v/git-latest-commit.svg)](https://crates.io/crates/git-latest-commit)\n\nMakes a file available to a Rust project at build time containing the latest commit's sha and summary as static vars.\n\nShamelessly adapted from [cstorey/git-build-version](https://github.com/cstorey/git-build-version).\n\nInvoke this tool in your package build step. In `Cargo.toml`, add it as a build dep:\n\n```toml\n[package]\nname = \"something-gratuitously-mentioning-rust\"\nbuild = \"build.rs\"\n\n[build-dependencies]\ngit-latest-commit = \"0.1.3\"\n```\n\nThen, in `build.rs` at the top level of your project:\n\n```rs\nextern crate git_latest_commit;\n\nconst PACKAGE_TOP_DIR : \u0026'static str = \".\";\n\nfn main()\n{\n    git_latest_commit::write(PACKAGE_TOP_DIR).expect(\"Exporting git commit info.\");\n}\n```\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fgit-latest-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceejbot%2Fgit-latest-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fgit-latest-commit/lists"}