mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
736 B
736 B
Project Structure
Overview
Pumpkin is split into multiple crates, thus having a set project structure between contributors is essential.
Pumpkin-Core
The core crate has some special rules that only apply to it:
- It may not depend on any other pumpkin crate
- There may not be any files directly under src/, except for the mod.rs file (this is to help with organisation)
Other crate rules
pumpkin-protocol- contains definitions for packet types and their serialization (be it through serde, or manually implementingClientPacket/ServerPacket), only thepumpkincrate may depend on thispumpkin-macros- similarly topumpkin-core, it may not depend on any other pumpkin crate