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

What's crates/utils/src/version.rs ? #4583

Closed
paolobarbolini opened this issue Apr 2, 2024 · 1 comment
Closed

What's crates/utils/src/version.rs ? #4583

paolobarbolini opened this issue Apr 2, 2024 · 1 comment

Comments

@paolobarbolini
Copy link
Contributor

Question

As part of M4SS-Code/cargo-goggles#11 I've stumbled on lemmy_utils -> src/version.rs and I was just wandering what that file is for. Could env!("CARGO_PKG_VERSION") substitute it?

https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates

@Nutomic
Copy link
Member

Nutomic commented Apr 2, 2024

Yes youre right, thanks for the suggestion!

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

No branches or pull requests

2 participants