use std::str::FromStr; use semver::{Version, VersionReq}; pub mod authentication; pub mod backend; pub mod connection; pub mod messages; pub mod model; #[macro_use] extern crate tracing; pub fn version() -> Version { Version::from_str(env!("CARGO_PKG_VERSION")).unwrap() } pub fn validate_version(other: &Version) -> bool { let version_req = VersionReq::from_str("=0.0.6").unwrap(); version_req.matches(other) }