forked from davidMcneil/rants
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
48 lines (43 loc) · 1.68 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
[package]
name = "rants"
version = "0.6.1"
authors = ["David McNeil <mcneil.david2@gmail.com>"]
description = "An async NATS client library."
repository = "https://github.com/davidMcneil/rants"
keywords = ["client", "nats", "pub-sub", "messaging", "queue"]
categories = ["asynchronous", "api-bindings", "database-implementations", "network-programming", "parser-implementations"]
readme = "README.md"
license = "MIT OR Apache-2.0"
edition = "2018"
exclude = ["rust-toolchain", ".vscode"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bytes = "1.2.0"
futures = "0.3.21"
log = "0.4.17"
nom = "7.1.1"
safer_owning_ref = "0.5.0"
pin-project = "1.0.11"
rand = "0.8.5"
serde = { version = "1.0.140", features = ["derive"] }
serde_json = "1.0.81"
tokio = { version = "1.20.1", features = ["io-util", "macros", "sync", "time", "net"] }
tokio-util = { version = "0.7.3", features = ["codec"] }
tokio-stream = { version = "0.1.9", features = ["sync"] }
uuid = { version = "1.1.2", features = ["v4"] }
# Optional dependencies
native-tls-crate = { version = "0.2.10", optional = true, package = "native-tls" }
rustls = { version = "0.20.6", optional = true }
tokio-native-tls = { version = "0.3.0", optional = true }
tokio-rustls = { version = "0.23.4", optional = true }
[dev-dependencies]
env_logger = "0.9.0"
hostname = "0.3.1"
rustls-pemfile = "1.0.0"
tokio = { version = "1.20.1", features = ["process", "rt-multi-thread"] }
[features]
default = []
native-tls = ["native-tls-crate", "tokio-native-tls", "tls"]
rustls-tls = ["rustls", "tokio-rustls", "tls"]
# A derived feature used to determine if either `native-tls` or `rustls-tls` are enable
tls = []