dfufile 0.3.0

DFU file processing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Dumps the structure of the file given as argument

use dfufile::{DfuFile, Error};

fn main() -> Result<(), Error> {
    let path = std::env::args().nth(1).expect("No file given");
    let mut dfu_file = DfuFile::open(path)?;

    println!("{dfu_file:#?}");
    println!("Calculated CRC32: {:?}", &mut dfu_file.calc_crc());

    Ok(())
}