1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
const VERSION: &str = env!("CARGO_PKG_VERSION"); /// Return the version number of the `flowrlib` library pub fn version() -> &'static str { VERSION } #[cfg(test)] mod test { use super::*; #[test] fn can_get_version() { assert!(!version().is_empty()); } }