feat: add RustyPipe version constant

This commit is contained in:
ThetaDev 2024-09-10 03:15:41 +02:00
parent 7972df0df4
commit 7a019f5706
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
4 changed files with 12 additions and 2 deletions

View file

@ -19,3 +19,6 @@ pub mod model;
pub mod param;
pub mod report;
pub mod validate;
/// Version of the RustyPipe crate
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

View file

@ -108,7 +108,7 @@ impl RustyPipeInfo<'_> {
pub(crate) fn new(language: Option<Language>) -> Self {
Self {
package: env!("CARGO_PKG_NAME"),
version: env!("CARGO_PKG_VERSION"),
version: crate::VERSION,
date: util::now_sec(),
language,
}