#mpd #libmpdclient #queue #connection #server #interface #basic

mpdclient

Rust interface to MPD using libmpdclient

5 releases

Uses new Rust 2024

new 0.1.2-rc1 Mar 10, 2025
0.1.2-rc.3 Mar 11, 2025
0.1.1 Mar 10, 2025
0.1.0 Mar 10, 2025

#364 in Machine learning

Download history 121/week @ 2025-03-05

121 downloads per month

MIT license

130KB
2.5K SLoC

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.


lib.rs:

Rust wrapper to interact with MPD through the C library libmpdclient.

Dependencies

~0.3–2.6MB
~55K SLoC