prep for plugin interface

This commit is contained in:
John Smith
2022-01-27 22:02:16 -05:00
parent 5cb2463a31
commit cbffc381c1
13 changed files with 854 additions and 195 deletions

View File

@@ -34,3 +34,14 @@ pub mod veilid_capnp {
}
pub mod tests;
pub fn veilid_version_string() -> String {
env!("CARGO_PKG_VERSION").to_owned()
}
pub fn veilid_version() -> (u32, u32, u32) {
(
u32::from_str(env!("CARGO_PKG_VERSION_MAJOR")).unwrap(),
u32::from_str(env!("CARGO_PKG_VERSION_MINOR")).unwrap(),
u32::from_str(env!("CARGO_PKG_VERSION_PATCH")).unwrap(),
)
}