Registry / networking / rcon
library0.6.0rscratesunverified

An rcon protocol implementation for remote server administration.

# Cargo.toml [dependencies] rcon = "0.6.0"
INSTALL
IMPORT
SIG · RCON
R
rcon
networkingrustv0.6.0
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.

Connection
use rcon::Connection;

Connects to an RCON server and sends a command.

use rcon::Connection; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let mut conn = Connection::connect("127.0.0.1:25575", "password").await?; let resp = conn.cmd("list").await?; println!("{}", resp); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like tokio
fix
Add tokio as a dependency and use #[tokio::main] or another async runtime
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
rcon — cargo add rcon · libregistry