althonos / opticaldisc

Read optical media filesystems with Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opticaldisc

Read optical media filesystems with Rust .

TravisCI Codecov License Source Crate Documentation CargoMake Changelog SayThanks

Dependencies

Package Description Minimum Latest Source License
nom byte parser combinators 4.0.0 latest GitHub MIT
memchr safe interface to memchr 2.0.0 latest GitHub MIT
error-chain convenient errors management 0.11.0 latest GitHub MIT/Apache 2.0
btoi convert strings to ints 0.3.0 latest GitHub MIT/Apache 2.0
chrono date and time management 0.4.0 latest GitHub MIT/Apache 2.0

Quickstart

Add this crate to your Cargo.toml manifest:

[dependencies]
opticaldisc = "^0.1.0"

Usage

Open an ISO-9660 filesystem

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[..]);

About

Read optical media filesystems with Rust

License:MIT License


Languages

Language:Rust 98.4%Language:Shell 1.6%