mirror of
https://github.com/bspeice/aeron-rs
synced 2025-07-01 22:06:16 -04:00
Rename to aeron-driver-sys, update to 1.25.0 release
This commit is contained in:
19
aeron-driver-sys/src/lib.rs
Normal file
19
aeron-driver-sys/src/lib.rs
Normal file
@ -0,0 +1,19 @@
|
||||
#![allow(non_upper_case_globals)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(non_snake_case)]
|
||||
#![allow(clippy::all)]
|
||||
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, 25);
|
||||
assert_eq!(patch, 0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user