This project has been moved to https://git.sr.ht/~phw/rust-discid
discid provides Rust bindings for the MusicBrainz DiscID library libdiscid. It allows calculating DiscIDs (MusicBrainz and freedb) for Audio CDs. Additionally the library can extract the MCN/UPC/EAN and the ISRCs from disc.
- libdiscid >= 0.6.0
use discid::DiscId;
fn main() {
// Specifying the device is optional. If set to `None` a platform
// specific default will be used.
let device = Some("/dev/cdrom");
let disc = DiscId::read(device).expect("Reading disc failed");
println!("ID: {}", disc.id());
}use discid::{DiscId, Features};