krabka-protocol 0.7.0

Apache Kafka wire-protocol codec (4.3.0), with typed RecordBatch and zero-copy borrowed decode
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.98.1"
name = "krabka-protocol"
version = "0.7.0"
authors = ["The Krabka Authors"]
build = "build.rs"
include = [
    "src/**/*",
    "generated/**/*",
    "schemas/VERSION",
    "schemas/versions/*/VERSION",
    "/build.rs",
    "/Cargo.toml",
    "/README.md",
    "/LICENSE",
    "/NOTICE",
    "/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Apache Kafka wire-protocol codec (4.3.0), with typed RecordBatch and zero-copy borrowed decode"
documentation = "https://docs.rs/krabka-protocol"
readme = "README.md"
keywords = [
    "kafka",
    "wire-protocol",
    "codec",
    "serialization",
    "decoder",
]
categories = [
    "encoding",
    "parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/krabka-io/krabka-protocol"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
arbitrary = ["dep:arbitrary"]
default = [
    "arbitrary",
    "gzip",
    "snappy",
    "lz4",
    "zstd",
]
gzip = ["krabka-compression/gzip"]
lz4 = ["krabka-compression/lz4"]
snappy = ["krabka-compression/snappy"]
zstd = ["krabka-compression/zstd"]

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

[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true

[dependencies.assert2]
version = "0.4"

[dependencies.bytes]
version = "1"

[dependencies.crc-fast]
version = "1.10"
features = ["std"]
default-features = false

[dependencies.krabka-compression]
version = "0.7.0"
default-features = false

[dependencies.krabka-units]
version = "0.7.0"

[dependencies.serde_json]
version = "1"

[dependencies.strum]
version = "0.28"
features = ["derive"]

[dependencies.thiserror]
version = "2"

[dependencies.zerocopy]
version = "0.8"
features = ["derive"]

[dev-dependencies.arbitrary]
version = "1"
features = ["derive"]

[dev-dependencies.crc32c]
version = "0.6"

[dev-dependencies.criterion]
version = "5.0.2"
package = "codspeed-criterion-compat"

[dev-dependencies.datatest-stable]
version = "0.3.3"

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.toml]
version = "1.1"

[build-dependencies.assert2]
version = "0.4"

[lints.clippy]
clone_on_copy = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"