| Crates.io | mpdclient |
| lib.rs | mpdclient |
| version | 0.1.2 |
| created_at | 2025-03-10 17:20:35.464462+00 |
| updated_at | 2025-04-03 18:41:59.93111+00 |
| description | Rust interface to MPD using libmpdclient |
| homepage | |
| repository | https://codeberg.org/fregrem/mpdclient |
| max_upload_size | |
| id | 1586974 |
| size | 241,608 |
Rust wrapper to interact with MPD through the C library libmpdclient.
fn main() {
// First, a connection to a MPD server must be created.
let connection = Connection::new()?;
// After that, commands can be sent to MPD, like adding to the queue.
connection.queue().add("example.mp3")?;
}
Currently supports the MPD protocol >= 0.23 (libmpdclient >= 2.21.0).
Also doesn't implement the async connection for now.