1 #![cfg_attr(not(test), no_std)] 2 3 #[cfg(test)] 4 extern crate std; 5 6 pub mod crc64; 7 pub mod tables; 8 9 pub fn add(left: usize, right: usize) -> usize { 10 left + right 11 } 12 13 #[cfg(test)] 14 mod tests { 15 use super::*; 16 17 #[test] 18 fn it_works() { 19 let result = add(2, 2); 20 assert_eq!(result, 4); 21 } 22 } 23