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

Support get git version at built time #103

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

4t145
Copy link
Collaborator

@4t145 4t145 commented Jan 29, 2024

example:

pub fn main() {
    const GIT_VERSION: &str = tardis::utils::build_info::git_version!();
    const PKG_VERSION: &str = tardis::pkg_version!();
    const PKG_NAME: &str = tardis::pkg!();
    println!("{} {} {}", PKG_NAME, PKG_VERSION, GIT_VERSION);
}

@4t145 4t145 merged commit 736792d into ideal-world:main Feb 2, 2024
7 checks passed
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.

1 participant