Read optical media filesystems with Rust .
Add this crate to your Cargo.toml manifest:
[dependencies]
opticaldisc = "^0.1.0"Open an ISO filesystem from anything that's both Read and Seek:
extern crate opticaldisc;
let file: std::fs::File = ...;
let iso = opticaldisc::iso::IsoFs::new(file)It's also possible to read a buffer containing binary data (using
std::io::Cursor
to emulate a file).
extern crate opticaldisc;
let data = include_bytes!("...");
let iso = opticaldisc::iso::IsoFs::from_buffer(&data[..]);