Skip to content

Commit 164b492

Browse files
authored
Improve: Fetch crate version (#644)
1 parent bda207c commit 164b492

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
//!
1818
//! Refer to the `Index` struct for detailed usage examples.
1919
20+
/// Returns the version of the USearch crate.
21+
pub fn version() -> &'static str {
22+
env!("CARGO_PKG_VERSION")
23+
}
24+
2025
/// The key type used to identify vectors in the index.
2126
/// It is a 64-bit unsigned integer.
2227
pub type Key = u64;

0 commit comments

Comments
 (0)