Skip to main content

flowrlib/
info.rs

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