Skip to content
b23r0 edited this page Oct 12, 2026 · 9 revisions

English · 简体中文

rust-raknet documentation

A high-performance asynchronous networking library implementing reliable UDP messaging in Rust. The optional blocking feature provides synchronous calls over the same Tokio transport.

Version / 版本:1.4.0 · crates.io · source / 源码 b909c93 · 2026-10-12

Guides

Topic Guide
Quick start Quick start
Blocking calls and shared runtimes Blocking calls and shared runtimes
Public API index Public API index
Five reliability modes Five reliability modes
RakNet wire format and recovery RakNet wire format and recovery
Message lifecycle and limits Message lifecycle and limits
Bytes and explicit batching Bytes and explicit batching
Send policy Send policy
Recovery policy and tail probes Recovery policy and tail probes
Every configuration parameter Every configuration parameter
Concurrency and socket tuning Concurrency and socket tuning
Errors, deadlines and cancellation Errors, deadlines and cancellation
Congestion and deployment boundaries Congestion and deployment boundaries
Benchmark results Benchmark results
Benchmark methodology Benchmark methodology
Benchmark reproduction Benchmark reproduction
Minecraft Bedrock proxy Minecraft Bedrock proxy
Troubleshooting and development Troubleshooting and development
Release history and upgrading Release history and upgrading

Scope

UDP delivery is made reliable through sequence numbers, ACK/NACK, retries and reordering. The five modes let messages choose delivery semantics. Applications still handle disconnects and provide business acknowledgements.

Payloads must be nonempty and start with 0xfe. Only ReliableOrdered automatically fragments oversized outgoing messages. Encryption, identity authentication, adaptive bandwidth congestion control, Sans-I/O and a Bevy plugin are not supplied. Blocking is a synchronous adapter, not a polling API. See the deployment guide for practical boundaries.

GitHub · API docs

Clone this wiki locally