1
0
Fork 0
Rust interface to MPD using libmpdclient (mirrored from https://codeberg.org/fregrem/mpdclient)
Find a file
2025-04-12 14:28:27 +02:00
mpd basic playlist, not working 2025-02-14 14:47:10 +01:00
src remove dbg! macros in src 2025-04-12 14:28:27 +02:00
tests add connection_cmp_version, remove connection_version_str, remove examples 2025-04-04 14:07:13 +02:00
.gitignore add Cargo.lock, version bump 2025-04-03 20:39:15 +02:00
Cargo.lock add Cargo.lock, version bump 2025-04-03 20:39:15 +02:00
Cargo.toml add Cargo.lock, version bump 2025-04-03 20:39:15 +02:00
LICENSE add LICENSE, README and add information to Cargo.toml 2025-03-10 18:17:54 +01:00
Makefile add lib_2_20_compat 2025-03-11 16:25:37 +01:00
README.md add LICENSE, README and add information to Cargo.toml 2025-03-10 18:17:54 +01:00

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.