Rust version of libmpdclient
Find a file
Konstantin Stepanov de9f2001d2
Merge pull request #50 from JakeStanger/fix/find-sticker-eq
fix(client): find_sticker_eq missing `=` argument
2022-06-15 23:28:20 +03:00
benches Cleanup code in benches. 2017-01-24 11:41:27 -07:00
examples Don't include window and group in Query. 2017-01-23 10:14:18 -07:00
src fix(client): find_sticker_eq missing = argument 2022-06-15 20:39:28 +01:00
tests Use std::time::Duration where possible 2020-02-26 21:50:53 +01:00
.gitignore initial commit 2014-11-17 11:39:47 +03:00
.travis.yml Pin to a version of nightly that has a working rust-clippy. 2017-02-12 23:01:59 -07:00
Cargo.toml Bump version 0.0.13 -> 0.1.0 2020-02-26 23:56:40 +01:00
LICENSE-APACHE update license to MIT/Apache-2.0 2016-01-10 20:59:11 +03:00
LICENSE-MIT fix copyright notice 2016-01-10 21:17:04 +03:00
README.md Add a docs.rs badge. 2017-01-06 19:16:49 -07:00
rustfmt.toml Format with rustfmt 2017-05-05 21:02:48 +02:00

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.