#libmpdclient #song #mpdclient

mpdclient

Rust interface to MPD using libmpdclient

7 releases

Uses new Rust 2024

new 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

#221 in Audio

Download history 261/week @ 2025-03-08 40/week @ 2025-03-15 108/week @ 2025-03-29

409 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
~54K SLoC