Registry / build-tool / git-info

git-info

JSON →
library0.1.3rscratesunverified

Extracts git repository information such as branch, commit hash, and tag.

# Cargo.toml [dependencies] git_info = "0.1.3"
INSTALL
IMPORT
SIG · GIT-INFO
G
git-info
build-toolrustv0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GitInfo
use git_info::GitInfo;

Retrieve current git branch and commit information.

use git_info::GitInfo; let info = GitInfo::new().unwrap(); println!("Branch: {}", info.branch());
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
git-info — cargo add git-info · libregistry