Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set version from Cargo.toml #40

Merged
merged 3 commits into from
Jun 24, 2024
Merged

Set version from Cargo.toml #40

merged 3 commits into from
Jun 24, 2024

Conversation

cameron-martin
Copy link
Owner

This uses a genrule to read the Cargo.toml and set CARGO_PKG_VERSION. This is picked up by clap to set the version when asked via --version.

Fixes #39

This uses a genrule to read the Cargo.toml and set `CARGO_PKG_VERSION`. This is picked up by clap to set the version when asked via `--version`.

Fixes #39
@cameron-martin cameron-martin merged commit c069c2d into master Jun 24, 2024
4 checks passed
@cameron-martin cameron-martin deleted the set-version branch June 24, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect version display in the command line output
1 participant