mpd

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

12 releases

0.0.12 Jun 23, 2017
0.0.11 Jan 25, 2016
0.0.7 Jun 26, 2015
0.0.3 Feb 2, 2015
0.0.2 Jan 24, 2015

#62 in Parser implementations

Download history 25/week @ 2018-05-27 53/week @ 2018-06-03 30/week @ 2018-06-10 28/week @ 2018-06-17 14/week @ 2018-06-24 154/week @ 2018-07-01 17/week @ 2018-07-08 3/week @ 2018-07-15 36/week @ 2018-07-22 26/week @ 2018-07-29 65/week @ 2018-08-05 38/week @ 2018-08-12 5/week @ 2018-08-19

55 downloads per month

MIT/Apache

97KB
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;
use std::net::TcpStream;

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

~1MB
~13K SLoC