20 releases (6 stable)

1.4.1 Feb 28, 2024
1.3.0 Oct 30, 2023
1.2.0 Jul 1, 2023
1.1.0 Mar 13, 2023
0.3.0 Mar 28, 2020

#1384 in Network programming

Download history 38/week @ 2023-12-06 90/week @ 2023-12-13 56/week @ 2023-12-20 62/week @ 2023-12-27 76/week @ 2024-01-03 86/week @ 2024-01-10 95/week @ 2024-01-17 75/week @ 2024-01-24 112/week @ 2024-01-31 120/week @ 2024-02-07 132/week @ 2024-02-14 111/week @ 2024-02-21 287/week @ 2024-02-28 139/week @ 2024-03-06 193/week @ 2024-03-13 188/week @ 2024-03-20

838 downloads per month
Used in 7 crates (6 directly)

MIT/Apache

250KB
6K SLoC

mpd_client

Asynchronous client for MPD.

Features

  • Asynchronous, using tokio.
  • Supports protocol version 0.23 and binary responses (e.g. for loading album art).
  • Typed command API that automatically deals with converting the response into proper Rust structs.
  • API for programmatically generating filter expressions without string wrangling.

Example

See the examples directory for a demo of using printing the currently playing song whenever it changes.

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

~4–16MB
~165K SLoC