A library for reading and writing ID3 metadata.
Add the dependency to your Cargo.toml
:
toml
[dependencies]
id3 = "0.2.2"
```rust extern crate id3;
fn main() { let tag = id3::Tag::readfrompath("testdata/id3v24.id3").unwrap();
// print the artist the hard way println!("{}", tag.get("TPE1").unwrap().content().text().unwrap());
// or print it the easy way println!("{}", tag.artist().unwrap()); } ```