crabka-protocol 0.2.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.95.0"
name = "crabka-protocol"
version = "0.2.0"
authors = ["The Crabka Authors"]
build = "build.rs"
include = [
    "src/**/*",
    "generated/**/*",
    "schemas/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE",
    "NOTICE",
]
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"
homepage = "https://github.com/robot-head/crabka"
documentation = "https://docs.rs/crabka-protocol"
readme = "README.md"
keywords = [
    "kafka",
    "wire-protocol",
    "codec",
    "serialization",
    "decoder",
]
categories = [
    "encoding",
    "parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/robot-head/crabka"
resolver = "2"

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

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

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

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

[dependencies.bytes]
version = "1"

[dependencies.crabka-compression]
version = "0.2"
default-features = false

[dependencies.crc32c]
version = "0.6"

[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.assert2]
version = "0.4"

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

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

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

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

[lints.rust]
unsafe_code = "forbid"