1
0
mirror of https://github.com/bspeice/aeron-rs synced 2024-09-18 17:51:27 -04:00
aeron-rs/src/lib.rs

14 lines
382 B
Rust
Raw Normal View History

2019-09-19 23:06:37 -04:00
//! Aeron client for Rust
#![deny(missing_docs)]
2019-09-19 23:06:37 -04:00
/// Retrieve the C library version in (major, minor, patch) format
2019-09-19 22:24:35 -04:00
pub fn aeron_version() -> (u32, u32, u32) {
2019-09-19 23:06:37 -04:00
unsafe {
(
aeron_driver_sys::aeron_version_major() as u32,
aeron_driver_sys::aeron_version_minor() as u32,
aeron_driver_sys::aeron_version_patch() as u32,
)
}
2019-09-19 18:45:21 -04:00
}