Crates.io | comfy-git-version |
lib.rs | comfy-git-version |
version | 0.4.0 |
source | src |
created_at | 2023-09-24 21:55:14.916671 |
updated_at | 2023-09-24 21:55:14.916671 |
description | A comfy fork of git-version: compile the git version (tag name, or hash otherwise) and dirty state into your program. |
homepage | |
repository | https://github.com/fusion-engineering/rust-git-version |
max_upload_size | |
id | 982196 |
size | 5,788 |
Embed git information in your code at compile-time.
use git_version::git_version;
const GIT_VERSION: &str = git_version!();
The version number will have a -modified
suffix if your git worktree had
untracked or changed files.
These macros do not depend on libgit, but simply uses the git
binary directly.
So you must have git
installed somewhere in your PATH
.
License: BSD-2-Clause