#music-player #mpd-client #daemon

mpd

A client library for MPD (music player daemon), like libmpdclient but in Rust

12 releases

0.1.0 Jul 9, 2023
0.0.12 Jun 23, 2017
0.0.11 Jan 25, 2016
0.0.7 Jun 26, 2015
0.0.2 Jan 24, 2015

#256 in Audio

Download history 260/week @ 2024-07-21 221/week @ 2024-07-28 163/week @ 2024-08-04 274/week @ 2024-08-11 132/week @ 2024-08-18 222/week @ 2024-08-25 294/week @ 2024-09-01 215/week @ 2024-09-08 209/week @ 2024-09-15 244/week @ 2024-09-22 211/week @ 2024-09-29 52/week @ 2024-10-06 136/week @ 2024-10-13 127/week @ 2024-10-20 168/week @ 2024-10-27 176/week @ 2024-11-03

612 downloads per month
Used in 19 crates (17 directly)

MIT/Apache

95KB
2K SLoC

rust-mpd

Pure Rust version of libmpdclient.

Full documentation

Example

Add to Cargo.toml:

[dependencies]
mpd = "*"

Then just use:

extern crate mpd;

use mpd::Client;

let mut conn = Client::connect("127.0.0.1:6600").unwrap();
conn.volume(100).unwrap();
conn.load("My Lounge Playlist", ..).unwrap();
conn.play().unwrap();
println!("Status: {:?}", conn.status());

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~175KB