2019-09-22 17:56:52 -04:00
|
|
|
//! [Aeron](https://github.com/real-logic/aeron) client for Rust
|
2019-11-07 22:52:26 -05:00
|
|
|
#![deny(missing_docs)]
|
2019-09-19 22:02:14 -04:00
|
|
|
|
2019-10-03 22:10:34 -04:00
|
|
|
#[cfg(target_endian = "big")]
|
|
|
|
compile_error!("Aeron is only supported on little-endian architectures");
|
|
|
|
|
2019-11-03 16:19:03 -05:00
|
|
|
pub mod cnc_descriptor;
|
2019-11-03 21:19:32 -05:00
|
|
|
pub mod command;
|
2019-11-03 16:19:03 -05:00
|
|
|
pub mod concurrent;
|
|
|
|
pub mod context;
|
2019-11-03 21:19:32 -05:00
|
|
|
pub mod control_protocol;
|
2019-09-23 23:04:59 -04:00
|
|
|
pub mod driver;
|
2019-11-03 21:19:32 -05:00
|
|
|
pub mod driver_proxy;
|
2019-10-03 22:10:34 -04:00
|
|
|
pub mod util;
|
2019-10-02 23:11:44 -04:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|