peerrs_binarypack/
lib.rs

1pub mod binarypack;
2pub mod error;
3
4#[cfg(test)]
5mod tests {
6    use crate::binarypack;
7    #[test]
8    fn binarypack_unpack() {
9        let a = [1, 2, 3];
10        match binarypack::unpack(&a).unwrap() {
11            binarypack::Unpacked::Uint8(s) => {
12                println!("u8: {}", s);
13            }
14            _ => {}
15        }
16    }
17}