feat: add RustyPipe version constant
This commit is contained in:
parent
7972df0df4
commit
7a019f5706
4 changed files with 12 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue