Create a basic structure guide

This commit is contained in:
lukas0008 committed 2024-08-21 16:30:38 +02:00
1 parent e6f0e126ca
commit e23587b698
2 files changed
+21

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# 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`](/pumpkin-protocol/) - contains definitions for packet types **and** their serialization (be it through serde, or manually implementing `ClientPacket`/`ServerPacket`), only the `pumpkin` crate may depend on this
- `pumpkin-macros` - similarly to `pumpkin-core`, it may not depend on any other pumpkin crate