Skip to content

How to include sha1 from git in the version report using derivce interface of clap? #5346

Answered by epage
szabgab asked this question in Q&A
Discussion options

You must be logged in to vote

Libraries like https://crates.io/crates/shadow-rs or https://crates.io/crates/vergen can be used to get the information you need. If you generate the string at runtime, you'll need to run cargo add clap -F string

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@szabgab
Comment options

Answer selected by szabgab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants