28 lines
646 B
Rust
28 lines
646 B
Rust
//! [Aeron](https://github.com/real-logic/aeron) client for Rust
|
|
|
|
#[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);
|
|
}
|
|
}
|