-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
48 lines (41 loc) · 1.57 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]
authors = ["Leon Lux <[email protected]>"]
categories = ["network-programming", "asynchronous"]
description = """
An asynchrounous gNMI client to interact with and manage network devices.
"""
name = "ginmi"
version = "0.1.3"
edition = "2021"
keywords = ["grpc", "async", "gnmi", "network-automation"]
license = "MIT OR Apache-2.0"
readme = "./README.md"
repository = "https://github.com/Lachstec/ginmi"
homepage = "https://github.com/Lachstec/ginmi"
# Currently doctests always fail because of the generated protobuf module
[lib]
doctest = false
[features]
dangerous_configuration = ["dep:hyper-rustls", "tower-http/util", "tower-http/add-extension", "dep:rustls-pemfile", "dep:tokio-rustls"]
[dependencies]
tokio = { version = "1.35.1", features = ["rt-multi-thread", "macros"] }
prost = "0.12.3"
tonic = { version = "0.11.0", features = ["transport", "tls", "tls-roots"] }
thiserror = "1.0.56"
tower-service = "0.3.2"
# Needs to match tonics version of http, else implementations of the Service trait break.
http = "0.2.0"
tower = "0.4"
# Dependencies for dangerous configuration
hyper = { version = "0.14", features = ["http2"] }
hyper-rustls = { version = "0.24.0", optional = true, features = ["http2"] }
tower-http = { version = "0.4", optional = true}
rustls-pemfile = { version = "1", optional = true }
tokio-rustls = { version = "0.24.0", optional = true, features = ["dangerous_configuration"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dev-dependencies]
tokio-test = "0.4.3"
[build-dependencies]
tonic-build = "0.11.0"