#libmpdclient #song #mpdclient

mpdclient

Rust interface to MPD using libmpdclient

7 releases

Uses new Rust 2024

0.1.2 Apr 3, 2025
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

#319 in Audio

Download history 282/week @ 2025-03-10 19/week @ 2025-03-17 231/week @ 2025-03-31 37/week @ 2025-04-07 3/week @ 2025-04-14

271 downloads per month

MIT license

125KB
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.

Dependencies

~0.3–2.6MB
~55K SLoC