mc_protocol 2.1.0

Rust implementation of Minecraft Java Edition protocol primitives: serialization, packet framing, encryption, and compression
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 = "2021"
name = "mc_protocol"
version = "2.1.0"
authors = ["kauri-off"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust implementation of Minecraft Java Edition protocol primitives: serialization, packet framing, encryption, and compression"
readme = "README.md"
keywords = [
    "minecraft",
    "protocol",
    "networking",
    "varint",
    "encryption",
]
categories = [
    "network-programming",
    "encoding",
    "game-development",
]
license = "MIT"
repository = "https://github.com/kauri-off/mc_protocol"

[package.metadata.docs.rs]
all-features = true

[features]
async = ["dep:tokio"]
compression = ["dep:flate2"]
default = [
    "async",
    "compression",
]
encryption = ["dep:openssl"]

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

[[test]]
name = "compression"
path = "tests/compression.rs"
required-features = ["compression"]

[[test]]
name = "encryption"
path = "tests/encryption.rs"
required-features = ["encryption"]

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

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

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

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

[dependencies.flate2]
version = "1.1.9"
optional = true

[dependencies.mc_protocol_derive]
version = "2.0.0"

[dependencies.openssl]
version = "0.10.75"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = ["full"]
optional = true

[dependencies.uuid]
version = "1.21.0"
features = ["v4"]

[dev-dependencies.tokio]
version = "1.49.0"
features = ["full"]

[target."cfg(windows)".dependencies.openssl]
version = "0.10.75"
features = ["vendored"]
optional = true