-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathCargo.toml
62 lines (55 loc) · 1.91 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[workspace]
members = ["protocol_codegen"]
[package]
name = "kafka-protocol"
version = "0.14.0"
authors = [
"Diggory Blake <[email protected]>",
"Charlotte McElwain <[email protected]>",
"belltoy <[email protected]>",
]
edition = "2021"
license = "MIT/Apache-2.0"
description = "Implementation of Kafka wire protocol."
homepage = "https://github.com/tychedelia/kafka-protocol-rs"
repository = "https://github.com/tychedelia/kafka-protocol-rs"
documentation = "https://docs.rs/kafka-protocol"
readme = "README.md"
keywords = ["kafka"]
[features]
# adds the ResponseKind + RequestKind enums with variants for every message type.
# disabled by default since it doubles clean release build times due to lots of generated code.
messages_enums = []
# Enable this feature if you are implementing a kafka client.
# It will enable encoding of requests and decoding of responses.
client = []
# Enable this feature if you are implementing a kafka protocol compatible broker.
# It will enable encoding of responses and decoding of requests.
broker = []
# Enable compression of records using gzip
gzip = ["dep:flate2"]
# Enable compression of records using zstd
zstd = ["dep:zstd"]
# Enable compression of records using snap
snappy = ["dep:snap"]
# Enable compression of records using lz4
lz4 = ["dep:lz4"]
default = ["client", "broker", "gzip", "zstd", "snappy", "lz4"]
[dependencies]
bytes = "1.0.1"
uuid = "1.3.0"
indexmap = "2.0.0"
crc = "3.0.0"
snap = { version = "1.0.5", optional = true }
flate2 = { version = "1.0.20", optional = true }
zstd = { version = "0.13", optional = true }
lz4 = { version = "1.24", optional = true }
paste = "1.0.7"
crc32c = "0.6.4"
anyhow = "1.0.80"
[dev-dependencies]
testcontainers = { version = "0.20.1", features = ["blocking", "watchdog"] }
# Display required features for items when rendering for docs.rs
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]