Skip to content

Commit cab1099

Browse files
committed
Add version number functon.
1 parent fa27c24 commit cab1099

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,11 @@ pub use table_collection::TableCollection;
4646
/// the error message is stored for diplay.
4747
pub type TskReturnValue = Result<i32, TskitRustError>;
4848

49+
/// Get the tskit_rust version number.
50+
pub fn version() -> &'static str {
51+
return env!("CARGO_PKG_VERSION");
52+
}
53+
4954
// Testing modules
5055
mod test_tsk_variables;
56+

0 commit comments

Comments
 (0)