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:
15
src/lib.rs
15
src/lib.rs
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user