Skip to content

Commit

Permalink
Merge pull request #12 from molpopgen/add_version
Browse files Browse the repository at this point in the history
Add version number functon.
  • Loading branch information
molpopgen authored Dec 20, 2020
2 parents fa27c24 + cab1099 commit b3e4cb8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,11 @@ pub use table_collection::TableCollection;
/// the error message is stored for diplay.
pub type TskReturnValue = Result<i32, TskitRustError>;

/// Get the tskit_rust version number.
pub fn version() -> &'static str {
return env!("CARGO_PKG_VERSION");
}

// Testing modules
mod test_tsk_variables;

0 comments on commit b3e4cb8

Please sign in to comment.