pass thru the kcl version (#5366)

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-02-12 15:55:34 -08:00
committed by GitHub
parent 59d0e079a1
commit 0874891dd0
7 changed files with 40 additions and 0 deletions

View File

@ -236,6 +236,11 @@ fn try_f64_to_i64(f: f64) -> Option<i64> {
}
}
/// Get the version of the KCL library.
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")
}
#[cfg(test)]
mod test {
use super::*;