netmap_min_sys/lib.rs
1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(dead_code)]
5
6#[cfg(feature = "sys")]
7include!(concat!(env!("OUT_DIR"), "/binding.rs"));
8
9// When `sys` is off, provide no symbols:
10#[cfg(not(feature = "sys"))]
11mod ffi {}
12
13#[cfg(test)]
14mod tests {
15 use super::*;
16
17 #[test]
18 fn test_struct_sizes() {
19 //verify that struct sizes match expected values
20 assert_eq!(std::mem::size_of::<netmap_ring>(), 128);
21 }
22}