1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mod error;
mod format;
mod pacfile;
mod pacfile_builder;
mod proto;

pub use error::{Error, Result};
pub use pacfile::Pacfile;
pub use pacfile_builder::PacfileBuilder;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        let n: u32 = 0x32636170;
        let buf: [u8; 4] = [
            (n & 0xFF) as u8,
            ((n & 0xFF00) >> 8) as u8,
            ((n & 0xFF0000) >> 16) as u8,
            ((n & 0xFF000000) >> 24) as u8,
        ];
        assert_eq!(buf, [0x70, 0x61, 0x63, 0x32]);
    }
}