ruststream-rdkafka 0.5.1

Apache Kafka broker implementation for the RustStream messaging framework, backed by rdkafka / librdkafka.
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.88"
name = "ruststream-rdkafka"
version = "0.5.1"
authors = ["RustStream contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Apache Kafka broker implementation for the RustStream messaging framework, backed by rdkafka / librdkafka."
readme = "README.md"
keywords = [
    "kafka",
    "messaging",
    "broker",
    "streaming",
    "faststream",
]
categories = [
    "asynchronous",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/powersemmi/ruststream-rdkafka"

[package.metadata.docs.rs]
features = ["testing"]

[features]
avro = [
    "schema-registry",
    "dep:apache-avro",
]
cbor = ["ruststream/cbor"]
default = ["json"]
json = ["ruststream/json"]
msgpack = ["ruststream/msgpack"]
protobuf = [
    "schema-registry",
    "dep:prost-reflect",
    "dep:protox",
]
schema-registry = [
    "dep:reqwest",
    "dep:serde",
    "dep:serde_json",
    "dep:schemars",
]
ssl = ["rdkafka/ssl"]
ssl-vendored = ["rdkafka/ssl-vendored"]
testing = [
    "ruststream/conformance",
    "ruststream/testing",
]
zstd = ["rdkafka/zstd"]

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

[[example]]
name = "kafka_avro"
path = "examples/kafka_avro.rs"
required-features = ["avro"]

[[example]]
name = "kafka_batches"
path = "examples/kafka_batches.rs"

[[example]]
name = "kafka_distribution"
path = "examples/kafka_distribution.rs"

[[example]]
name = "kafka_keys"
path = "examples/kafka_keys.rs"

[[example]]
name = "kafka_multi_topic"
path = "examples/kafka_multi_topic.rs"

[[example]]
name = "kafka_producer"
path = "examples/kafka_producer.rs"

[[example]]
name = "kafka_protobuf"
path = "examples/kafka_protobuf.rs"
required-features = ["protobuf"]

[[example]]
name = "kafka_quickstart"
path = "examples/kafka_quickstart.rs"

[[example]]
name = "kafka_retries"
path = "examples/kafka_retries.rs"

[[example]]
name = "kafka_schema_registry"
path = "examples/kafka_schema_registry.rs"
required-features = ["schema-registry"]

[[example]]
name = "kafka_testing"
path = "examples/kafka_testing.rs"
required-features = ["testing"]

[[example]]
name = "kafka_topics"
path = "examples/kafka_topics.rs"

[[example]]
name = "kafka_transactions"
path = "examples/kafka_transactions.rs"

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

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

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

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

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

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

[dependencies.apache-avro]
version = "0.21"
features = ["derive"]
optional = true

[dependencies.bytes]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.prost-reflect]
version = "0.16"
features = ["serde"]
optional = true

[dependencies.protox]
version = "0.9"
optional = true

[dependencies.rdkafka]
version = "0.39"
features = [
    "tokio",
    "tracing",
]

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
]
optional = true
default-features = false

[dependencies.ruststream]
version = ">=0.5.2, <0.6.0"
default-features = false

[dependencies.schemars]
version = "1"
optional = true

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "signal",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.ruststream]
version = ">=0.5.2, <0.6.0"
features = [
    "conformance",
    "testing",
    "macros",
    "json",
]
default-features = false

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "signal",
]

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

[lints.clippy]
missing_const_for_fn = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
redundant_pub_crate = "allow"

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

[lints.clippy.correctness]
level = "deny"
priority = -1

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

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

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "warn"