rust-craft is a collection of crates to make minecraft development (client, server) with rust possible.
There's no better way of learning proc-macros and feature-flags by implementing them for a game you like (and also learning more about its packets on the way).
Name | Description |
---|---|
protocol-core | Packet related abstraction traits and implementations for common types |
protocol-derive | Proc-macros responsible for implementing Readable, Writeable and Packet traits for structs automatically via #[derive(Packet, Readable, Writeable)] |
protocol-packets | Packet structs and documentation |
Examples can be found on the folder /examples
, more examples will come when possible.
Not in order.
- Handshake packet definitions. (protocol-packets)
- Status packet definitions. (protocol-packets)
- Login packet definitions. (protocol-packets)
- Play packet definitions. (protocol-packets)
- Connection wrapper that stores data (state, compression) and send/receive packets. (protocol-packets)
- Nbt type (like Json). (protocol-core)
- ChatComponent type. (protocol-packets)
This project is licensed under the MIT license.
PRs are welcome :D