#protocols #debugging #minetest #luanti

luanti-protocol

Luanti protocol implemented in Rust

1 unstable release

Uses new Rust 2024

new 0.2.0 Mar 24, 2025

#1055 in Parser implementations


Used in luanti

MIT license

290KB
7.5K SLoC

luanti-protocol

Pure Rust implementation of the Luanti protocol.

Supported functionality:

  • Serialization & deserialization of packets and commands
  • Luanti commands as strongly-typed struct's and enums
  • The peer protocol
    • Channels
    • Packet splitting & split packet reconstruction
    • Reliable packet retries & ACK tracking
    • peer_id tracking

This is a library and does not contain any programs. For an example of how to use this library, see the luanti-shark crate.

Work in progress

  • Documentation is incomplete and not reviewed.

  • Reliable packet delivery transmission window size is fixed for now.

  • Non-reliable split reconstruction timeout not enabled yet.


lib.rs:

Luanti protocol implemented in Rust

Dependencies

~9–16MB
~201K SLoC