[package]
edition = "2024"
rust-version = "1.89"
name = "ghast-protocol"
version = "0.4.2"
authors = ["Crefax"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minecraft Java Edition network protocol for the ghast client library: generated per-version packets, framing, compression, encryption, NBT"
documentation = "https://docs.rs/ghast-protocol"
readme = "README.md"
keywords = [
"minecraft",
"protocol",
"packets",
"nbt",
"bot",
]
categories = [
"network-programming",
"encoding",
"game-development",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Crefax/Ghast"
[package.metadata.docs.rs]
all-features = true
[features]
chat-json = ["dep:serde_json"]
default = [
"v1_8",
"v1_12_2",
"v1_16_5",
"v26_1",
"v26_2",
"tokio",
"libdeflate",
]
libdeflate = ["dep:libdeflater"]
testgen = []
tokio = ["dep:tokio"]
v1_12_2 = []
v1_16_5 = []
v1_8 = []
v26_1 = []
v26_2 = []
[lib]
name = "ghast_protocol"
path = "src/lib.rs"
[[example]]
name = "login_26_1"
path = "examples/login_26_1.rs"
required-features = ["v26_1"]
[[example]]
name = "login_26_2"
path = "examples/login_26_2.rs"
required-features = ["v26_2"]
[[test]]
name = "capture_26_1"
path = "tests/capture_26_1.rs"
[[test]]
name = "capture_26_2"
path = "tests/capture_26_2.rs"
[[test]]
name = "differential"
path = "tests/differential.rs"
[[test]]
name = "overrides"
path = "tests/overrides.rs"
[[test]]
name = "packets_report"
path = "tests/packets_report.rs"
[[test]]
name = "player_info_26_1"
path = "tests/player_info_26_1.rs"
[[test]]
name = "robustness"
path = "tests/robustness.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "skip_26_1"
path = "tests/skip_26_1.rs"
[[test]]
name = "skip_26_2"
path = "tests/skip_26_2.rs"
[[bench]]
name = "packets"
path = "benches/packets.rs"
harness = false
required-features = [
"v1_8",
"v1_12_2",
"v1_16_5",
]
[[bench]]
name = "protocol"
path = "benches/protocol.rs"
harness = false
required-features = [
"v1_8",
"libdeflate",
]
[dependencies.aes]
version = "0.9.4"
[dependencies.bytes]
version = "1.12"
[dependencies.bytestring]
version = "1.5"
[dependencies.cfb8]
version = "0.9.1"
[dependencies.flate2]
version = "1.1.10"
features = ["zlib-rs"]
default-features = false
[dependencies.libdeflater]
version = "1.26"
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1.54"
features = ["io-util"]
optional = true
default-features = false
[dependencies.uuid]
version = "1"
[dev-dependencies.criterion]
version = "0.8"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.proptest]
version = "1.12"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1.54"
features = [
"io-util",
"rt",
"macros",
]
default-features = false