Closed tiann closed 1 year ago
Hi @tiann
shadow-rs
support extended hook function.
If you want add git rev-list --count HEAD
result in you build project. I suggest use new_hook
function.
The detail example ,please see
If using a hook, we may need to integrate the git2 dependency or install git. I would be happy to submit a PR if you are willing to accept this feature.
Currently, the feature is not needed.
The result of
git rev-list --count HEAD
is sometimes useful to generate version code.