packetio-0.1.33 has been yanked.
packetio
A simple Rust crate for sending and receiving length-prefixed binary packets over any stream
that implements Read or 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
ReadorWrite)(TcpStream,BufReader, etc.) - Minimal API with a handy
PacketSenderandPacketReceivertraits for easy use - Uses
bincodefor compact, efficient binary encoding - Lightweight and just straight forward!
Installation
Add this to your Cargo.toml:
[]
= "0.1"
= "2"