2019-09-22 17:56:52 -04:00
|
|
|
//! [Aeron](https://github.com/real-logic/aeron) client for Rust
|
2019-09-19 23:06:37 -04:00
|
|
|
#![deny(missing_docs)]
|
2019-09-19 22:02:14 -04:00
|
|
|
|
2019-09-23 23:04:59 -04:00
|
|
|
pub mod driver;
|
2019-09-22 17:56:52 -04:00
|
|
|
|
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
|
|
|
}
|