ghast-protocol 0.2.2

Minecraft Java Edition network protocol for the ghast client library: generated per-version packets, framing, compression, encryption, NBT
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "ghast-protocol"
version = "0.2.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"
homepage = "https://github.com/Crefax/Ghast"
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_16_5",
    "tokio",
    "libdeflate",
]
libdeflate = ["dep:libdeflater"]
testgen = []
tokio = ["dep:tokio"]
v1_16_5 = []
v1_8 = []

[lib]
name = "ghast_protocol"
path = "src/lib.rs"

[[test]]
name = "differential"
path = "tests/differential.rs"

[[test]]
name = "overrides"
path = "tests/overrides.rs"

[[test]]
name = "robustness"
path = "tests/robustness.rs"

[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"

[[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