mirror of
https://github.com/Snowiiii/Pumpkin.git
synced 2024-11-21 16:15:21 +00:00
93c6da993f
* Add query options to config Added packet data types Correctly parse a handshake packet Add tokio to pumpkin protocol for `AsyncReadExt` convenience functions * Add repr(u8) so that PacketType is a byte * Respond to handshake correctly * Allow for proper decoding of status packets and properly handle errors in decoding * Implement challange tokens and verify with token and address * Encode Basic status packet Switch to CString since its better to and null errors higher up the code * Encode Full status packet * Add forgotten fields to full status packet * Correctly respond to query clients when requesting full status * Return actual address and port of server Respect config options Remove uncessary debug derives * Remove packet type as it is redundant/unnecssary * Implement basic status request Refactor code for better error handling * Update README * Show players correctly in full status packet * Store all packets in structs instead of enums Break up en/decoding for each packet Reduce client tracking Get rid of QueryClients struct Stop storing of magic value and check during decoding Added tests for all decoding and encoding Fix all sugestions from @StripedMonkey
30 lines
625 B
TOML
30 lines
625 B
TOML
[package]
|
|
name = "pumpkin-protocol"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
pumpkin-config = { path = "../pumpkin-config" }
|
|
pumpkin-macros = { path = "../pumpkin-macros" }
|
|
pumpkin-world = { path = "../pumpkin-world" }
|
|
pumpkin-core = { path = "../pumpkin-core" }
|
|
|
|
uuid.workspace = true
|
|
serde.workspace = true
|
|
thiserror.workspace = true
|
|
itertools.workspace = true
|
|
log.workspace = true
|
|
tokio.workspace = true
|
|
num-traits.workspace = true
|
|
num-derive.workspace = true
|
|
|
|
bytes = "1.8"
|
|
|
|
flate2 = "1.0"
|
|
|
|
# encryption
|
|
aes = "0.8.4"
|
|
cfb8 = "0.8.1"
|
|
|
|
fastnbt = { git = "https://github.com/owengage/fastnbt.git" }
|