Sourcon
⚙️ Pure Rust implementation of the Source rcon protocol.
Install / Use
/learn @crescentrose/SourconREADME
sourcon
Pure Rust async implementation of the Source RCON protocol.
use sourcon::client::Client;
use std::error::Error;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let host = "dev.viora.sh:27015";
// client must be mutable
let mut client = Client::connect(host, "poop").await?;
let response = client.command("echo hi").await?;
assert_eq!(response.body(), "hi");
Ok(())
}
What is working
- Authentication
- Sending commands to a server
- Receiving responses
What could be added
- Strongly typed commands instead of arbitrary strings
- Stream UDP logs with password support
- Implement RCON server for testing purposes and Fun
- Tests
Development
I am not currently actively working on any projects using this library (though it might happen in the future). If you would like to contribute, please feel free to open issues, submit PRs or even fork the entire thing.
License
This project is licensed under the terms of the MIT license. See LICENSE for the full text.
Related Skills
himalaya
337.3kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
coding-agent
337.3kDelegate coding tasks to Codex, Claude Code, or Pi agents via background process
