1
0
mirror of https://github.com/bspeice/aeron-rs synced 2025-07-04 23:34:56 -04:00

Start on an aeron-rs crate

This commit is contained in:
2019-09-19 22:24:35 -04:00
parent a1604f49f0
commit cfad779e03
9 changed files with 49 additions and 32 deletions

View File

@ -0,0 +1,19 @@
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[cfg(test)]
mod tests {
#[test]
fn version_check() {
let major = unsafe { crate::aeron_version_major() };
let minor = unsafe { crate::aeron_version_minor() };
let patch = unsafe { crate::aeron_version_patch() };
assert_eq!(major, 1);
assert_eq!(minor, 21);
assert_eq!(patch, 2);
}
}