rcon-rs 0.1.0

barebones rcon implementation in rust for Minecraft
Documentation
  • Coverage
  • 61.11%
    11 out of 18 items documented0 out of 8 items with examples
  • Size
  • Source code size: 43.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.72 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • NotCreative21

rcon-rs

Hyper barebones implementation of the RCON protocol for Minecraft.

To use this crate place this in your Cargo.toml file

[dependencies]
rcon-rs = "0.1.0" 

Example usage:
// create new connect using ip and port
let mut conn = Client::new("127.0.0.1", "25575");
// you MUST auth the connection before attempting to use it
conn.auth("password")?;
// send any command you would like, the packet type is option and inferred to be a command by
// default
conn.send("say hi", Some(PacketType::Cmd))?;

A more complete example can be found here

rcon protocol details

More info can be found here:

https://wiki.vg/RCON#Fragmentation

contributing

Any suggestions, improvements, or pull request are welcome. I am relatively new to rust so my quality of code is not great but I'm looking to improve!