packetio 0.1.32

A simple Rust crate for sending and receiving length-prefixed binary packets over any stream.
Documentation
packetio-0.1.32 has been yanked.

packetio

Crates.io Size

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 or Write)(TcpStream, BufReader, etc.)
  • Minimal API with a handy PacketSender and PacketReceiver traits for easy use
  • Uses bincode for compact, efficient binary encoding
  • Lightweight and just straight forward!

Installation

Add this to your Cargo.toml:

[dependencies]
packetio = "0.1"
bincode = "2"