Expand description
Git facts for build.rs scripts, with rerun triggers on the files they come from.
Functionsยง
- commit_
date - Committer date of
HEADin RFC 3339. - commit_
hash - Abbreviated or full hash of
HEAD. - head_
files - Paths that change whenever
HEADresolves to another commit: theHEADfile, the branch ref it points to, andpacked-refs. Resolved through git so linked worktrees watch their ownHEADand 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-changedfor every file inhead_files.