ISO9660 Simple
It's a Rust crate that provides minimal ISO9660 images reading and parsing functionality.
To Do
- Rock Ridge extension support
- Joliet extension support
Usage
Firstly, add iso9660_simple to your project:
Then, implement reading device trait for your device (it may be a real device, or just a file).
The complete implementation of reading device trait for file looks like this:
use File;
use Read as ISORead;
;
Then, you're ready to open the device and make ISO9660 reader from it. For example:
let device = FileDevice;
let mut iso = ISO9660from_device;
And now, you can do parse an ISO9660 file:
let root_directory_lba = iso.root.lba.lsb;
let data = iso.read_directory; // Read root directory
let first_file = data.first.unwrap; // Get first file info
let data = iso.read_file; // Read the whole file into Vec<u8>.