-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy pathCargo.toml
75 lines (70 loc) · 3.1 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
63
64
65
66
67
68
69
70
71
72
73
74
75
[package]
name = "pulsar"
version = "6.1.0"
edition = "2021"
authors = [
"Colin Stearns <[email protected]>",
"Kevin Stenerson <[email protected]>",
"Geoffroy Couprie <[email protected]>",
]
license = "MIT OR Apache-2.0"
readme = "./README.md"
repository = "https://github.com/streamnative/pulsar-rs"
documentation = "https://docs.rs/pulsar"
description = "Rust client for Apache Pulsar"
keywords = ["pulsar", "api", "client"]
[dependencies]
async-channel = "^2.3.1"
async-trait = "^0.1.83"
async-std = { version = "^1.13.0", features = ["attributes", "unstable"], optional = true }
async-native-tls = { version = "^0.5.0", optional = true }
asynchronous-codec = { version = "^0.7.0", optional = true }
bytes = "^1.9.0"
chrono = { version = "^0.4.39", default-features = false, features = ["clock", "std"] }
crc = "^3.2.1"
data-url = { version = "^0.3.1", optional = true }
flate2 = { version = "^1.0.35", optional = true }
futures = "^0.3.31"
futures-rustls = { version = "^0.26.0", optional = true } # replacement of crate async-rustls (also a fork of tokio-rustls)
log = "^0.4.22"
lz4 = { version = "^1.28.0", optional = true }
native-tls = { version = "^0.2.12", optional = true }
nom = { version = "^7.1.3", default-features = false, features = ["alloc"] }
openidconnect = { version = "^3.5.0", optional = true }
oauth2 = { version = "^4.4.2", optional = true }
pem = "^3.0.4"
prost = "^0.13.4"
prost-derive = "^0.13.4"
rand = "^0.8.5"
regex = "^1.11.1"
rustls = { version = "^0.23.20", optional = true }
snap = { version = "^1.1.1", optional = true }
serde = { version = "^1.0.216", features = ["derive"], optional = true }
serde_json = { version = "^1.0.133", optional = true }
tokio = { version = "^1.42.0", features = ["rt", "net", "time"], optional = true }
tokio-util = { version = "^0.7.13", features = ["codec"], optional = true }
tokio-rustls = { version = "^0.26.1", optional = true }
tokio-native-tls = { version = "^0.3.1", optional = true }
tracing = { version = "^0.1.41", optional = true }
url = "^2.5.4"
uuid = { version = "^1.11.0", features = ["v4", "fast-rng"] }
webpki-roots = { version = "^0.26.7", optional = true }
zstd = { version = "^0.13.2", optional = true }
[dev-dependencies]
env_logger = "^0.11.5"
serde = { version = "^1.0.216", features = ["derive"] }
serde_json = "^1.0.133"
tokio = { version = "^1.42.0", features = ["macros", "rt-multi-thread"] }
[build-dependencies]
prost-build = "^0.13.4"
protobuf-src = { version = "^2.1.0", optional = true }
[features]
async-std-runtime = ["async-std", "asynchronous-codec", "native-tls", "async-native-tls"]
async-std-rustls-runtime = ["async-std", "asynchronous-codec", "futures-rustls", "rustls", "webpki-roots"]
auth-oauth2 = ["openidconnect", "oauth2", "serde", "serde_json", "data-url"]
compression = ["lz4", "flate2", "zstd", "snap"]
default = ["compression", "tokio-runtime", "async-std-runtime", "auth-oauth2"]
protobuf-src = ["dep:protobuf-src"]
telemetry = ["tracing"]
tokio-runtime = ["tokio", "tokio-util", "native-tls", "tokio-native-tls"]
tokio-rustls-runtime = ["tokio", "tokio-util", "tokio-rustls", "rustls", "webpki-roots"]