flowrclib/info.rs
1//! Info module provides methods to get additional information about the flowrclib library
2
3const VERSION: &str = env!("CARGO_PKG_VERSION");
4
5/// return the version number of the library as a string of the form "M.m.p"
6///
7/// - M is a one or two digit Major version number
8/// - m is a one or two digit Minor version number
9/// - p is a one or two digit Patch version number
10pub fn version() -> &'static str {
11 VERSION
12}
13
14#[cfg(test)]
15mod test {
16 use super::*;
17
18 #[test]
19 fn can_get_version() {
20 assert!(!version().is_empty());
21 }
22}