1
0
mirror of https://github.com/bspeice/aeron-rs synced 2025-07-02 06:16:18 -04:00

Format, clippy, and start the docs

This commit is contained in:
2019-09-19 23:06:37 -04:00
parent e43c035aed
commit 6018b12670
3 changed files with 25 additions and 13 deletions

View File

@ -1,8 +1,13 @@
//! Aeron client for Rust
#![deny(missing_docs)]
/// Retrieve the C library version in (major, minor, patch) format
pub fn aeron_version() -> (u32, u32, u32) {
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,
)}
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,
)
}
}