Rust interface to MPD using libmpdclient (mirrored from https://codeberg.org/fregrem/mpdclient)
mpd | ||
src | ||
tests | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
Makefile | ||
README.md |
Mpdclient
Rust wrapper to interact with MPD through the C library libmpdclient.
Basic Usage
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")?;
}
Requirements
Currently supports the MPD protocol >= 0.23 (libmpdclient >= 2.21.0).
Also doesn't implement the async connection for now.