Registry / utility / lofty
library0.24.0rscratesunverified

Audio metadata library for reading and writing tags in various formats.

# Cargo.toml [dependencies] lofty = "0.24.0"
INSTALL
IMPORT
SIG · LOFTY
L
lofty
utilityrustv0.24.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tag
use lofty::Tag;

Reads metadata from an MP3 file and prints the title.

use lofty::Tag; use std::fs::File; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut file = File::open("song.mp3")?; let tag = Tag::new().read_from(&mut file)?; println!("Title: {:?}", tag.title()); Ok(()) }
Debug
Known issues
gotchaRequires feature flags for specific formats (e.g., `mp3`, `flac`).
fix
Enable features in Cargo.toml: `lofty = { features = ["mp3", "flac"] }`.
affects: >=0.24.0
Upgrade
Version history
0.24.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lofty — cargo add lofty · libregistry