-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
74 lines (65 loc) · 2.33 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
[package]
name = "zbx_sender"
version = "0.4.1"
authors = ["Alexander Andreev <[email protected]>"]
description = "Implementation of Zabbix Sender Client."
homepage = "https://github.com/ava57r/zbx-sender-rs"
repository = "https://github.com/ava57r/zbx-sender-rs"
documentation = "https://docs.rs/zbx_sender"
keywords = ["zabbix", "zabbix-sender", "zabbix-protocol"]
readme = "README.md"
license = "MIT"
edition = "2021"
[package.metadata."docs.rs"]
features = [
"async_tokio",
"tls_openssl",
"tls_openssl_tokio",
"clap",
]
[features]
async_tokio = ["tokio"]
_tls_common = ["derive_builder"]
tls_rustls = ["_tls_common", "rustls", "rustls-pemfile", "rustls-native-certs", "x509-certificate"]
tls_openssl = ["_tls_common", "openssl", "openssl-errors", "hex"]
tls_rustls_tokio = ["tokio-rustls"]
tls_openssl_tokio = ["tokio-openssl"]
[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
regex = "1.5"
lazy_static = "1.4"
byteorder = "1.4"
thiserror = "1.0.31"
tokio = { version = "1.18", optional = true, features = ["net", "io-util"] }
tracing = { version = "0.1", optional = true, features = ["log", "std"], default-features = false }
clap = { version = "3.1.17", optional = true, features = ["std", "derive"], default-features = false }
derive_builder = { version = "0.11.2", optional = true }
rustls = { version = "0.20.4", features = ["dangerous_configuration"], optional = true }
rustls-pemfile = { version = "1.0.0", optional = true }
rustls-native-certs = { version = "0.6.2", optional = true }
x509-certificate = { version = "0.13.0", optional = true }
tokio-rustls = { version = "0.23.4", optional = true }
openssl = { version = "0.10.40", optional = true }
hex = { version = "0.4.3", optional = true }
openssl-errors = { version = "0.2.0", optional = true }
tokio-openssl = { version = "0.6.3", optional = true }
[dev-dependencies]
anyhow = "1.0.57"
csv = "1.1.6"
mock-io = { version = "0.3.2", features = ["sync", "async-tokio"] }
tokio = { version = "1.18.1", features = ["net", "io-util", "rt", "macros"] }
tokio-test = "0.4.2"
[[example]]
name = "clap_sender"
required-features = ["clap"]
[[example]]
name = "tls_sender"
required-features = ["_tls_common", "clap"]
[[example]]
name = "tls_sender_async"
required-features = ["_tls_common", "clap", "async_tokio"]
[[example]]
name = "sender"
[[example]]
name = "bulk_sender"