Registry / networking / mpd-client

mpd-client

JSON →
library1.4.1rscratesunverified

Asynchronous user-friendly MPD client.

# Cargo.toml [dependencies] mpd_client = "1.4.1"
INSTALL
IMPORT
SIG · MPD-CLIENT
M
mpd-client
networkingrustv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use mpd_client::Client;

Connects to an MPD server and retrieves its status.

use mpd_client::Client; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let mut client = Client::connect("127.0.0.1:6600").await?; let status = client.status().await?; println!("MPD status: {:?}", status); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) to be used.
fix
Add tokio as a dependency and use #[tokio::main] or similar runtime attribute.
affects: >=1.0.0
Upgrade
Version history
1.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mpd-client — cargo add mpd-client · libregistry