Skip to main content

Crate buildinfo

Crate buildinfo 

Source
Expand description

Git facts for build.rs scripts, with rerun triggers on the files they come from.

Functionsยง

commit_date
Committer date of HEAD in RFC 3339.
commit_hash
Abbreviated or full hash of HEAD.
head_files
Paths that change whenever HEAD resolves to another commit: the HEAD file, the branch ref it points to, and packed-refs. Resolved through git so linked worktrees watch their own HEAD and the shared refs. Only existing files: cargo reruns a script on every build for a missing one.
rerun_on_head_change
Prints cargo:rerun-if-changed for every file in head_files.