| Crates.io | mp3-duration |
| lib.rs | mp3-duration |
| version | 0.1.10 |
| created_at | 2017-12-11 02:40:32.230304+00 |
| updated_at | 2020-06-18 07:00:03.179702+00 |
| description | A library for measuring the playback duration of mp3 files |
| homepage | |
| repository | https://github.com/agersant/mp3-duration |
| max_upload_size | |
| id | 42351 |
| size | 22,015 |
This crate has only one purpose: determining the playback duration of mp3 files.
use std::path::Path;
use mp3_duration;
let path = Path::new("music.mp3");
let duration = mp3_duration::from_path(&path).unwrap();
println!("File duration: {:?}", duration);
failure with thiserror for error management (thanks @amesgen for the contribution)