TagLib-Rust is a library that allows accessing audio meta-data in Rust, by using the TagLib library.
TagLib-Rust supports reading and editing the meta-data of several popular audio formats. Currently there is support for:
- ID3v1 and ID3v2 for MP3 files
- Ogg Vorbis and FLAC
- MPC
- Speex
- WavPack
- TrueAudio
- MP4
- ASF
You need TagLib installed on your system to build. This can be found in the following packages:
- Arch Linux: taglib
- CentOS/Fedora: taglib
- Gentoo: media-libs/taglib
- Ubuntu/Debian: libtagc0-dev
The pkg-config
Rust module can also be optionally used to find the location
of the TagLib library when building.
If you're using cargo to manage your project, you can download through Crates.io:
[dependencies]
taglib = "*"
Alternatively, you can pull it from GitHub:
[dependencies]
taglib = { git = "https://github.com/ebassi/taglib-rust" }
Otherwise, clone the Git repository, and run cargo:
$ cargo build
TagLib-Rust comes with some examples on how to use it, see the examples
directory in the the Git repository.
The API reference for TagLib-Rust is available online.
TagLib-Rust is licensed under the terms of the MIT/X11 license.
See the LICENSE
file for more details.