1
0
mirror of https://github.com/bspeice/aeron-rs synced 2025-07-11 18:54:53 -04:00
Files
aeron-rs/aeron-rs/src/lib.rs
Bradlee Speice 3240282354 Re-enable deny(docs)
It's better than leaving it out, but I don't think I've yet done a good job at explaining what each element's purpose is.
2019-11-07 22:52:26 -05:00

29 lines
669 B
Rust

//! [Aeron](https://github.com/real-logic/aeron) client for Rust
#![deny(missing_docs)]
#[cfg(target_endian = "big")]
compile_error!("Aeron is only supported on little-endian architectures");
pub mod cnc_descriptor;
pub mod command;
pub mod concurrent;
pub mod context;
pub mod control_protocol;
pub mod driver;
pub mod driver_proxy;
pub mod util;
const fn sematic_version_compose(major: u8, minor: u8, patch: u8) -> i32 {
(major as i32) << 16 | (minor as i32) << 8 | (patch as i32)
}
#[cfg(test)]
mod tests {
use crate::sematic_version_compose;
#[test]
fn version_compose_cnc() {
assert_eq!(sematic_version_compose(0, 0, 16), 16);
}
}