uv_version/lib.rs
1/// Return the application version.
2///
3/// This should be in sync with uv's version based on the Crate version.
4pub fn version() -> &'static str {
5 env!("CARGO_PKG_VERSION")
6}
7
8#[cfg(test)]
9mod tests {
10 use super::*;
11
12 #[test]
13 fn test_get_version() {
14 assert_eq!(version().to_string(), env!("CARGO_PKG_VERSION").to_string());
15 }
16}