mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-10-11 10:08:29 -04:00
prep for plugin interface
This commit is contained in:
parent
5cb2463a31
commit
cbffc381c1
13 changed files with 854 additions and 195 deletions
|
@ -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(),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue