packetio-0.1.3 has been yanked.
packetio
A simple Rust crate for sending and receiving length-prefixed binary packets over any stream
that implements Read + Write. Uses bincode for serialization.
It lets you send structs and rust types over the network!
Features
- Sends and receives length-prefixed packets to keep boundaries clear
- Generic over any stream implementing
Read + Write(TcpStream,BufReader, etc.) - Minimal API with a handy
PacketIOtrait for easy use - Uses
bincodefor compact, efficient binary encoding
Installation
Add this to your Cargo.toml:
[]
= "0.1"
= "2"