forked from cloudwego/volo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
122 lines (109 loc) · 2.74 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[package]
name = "examples"
version = "0.0.0"
edition.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
authors.workspace = true
publish = false
# hello
[[bin]]
name = "hello-grpc-server"
path = "src/hello/grpc_server.rs"
[[bin]]
name = "hello-grpc-client"
path = "src/hello/grpc_client.rs"
[[bin]]
name = "hello-thrift-server"
path = "src/hello/thrift_server.rs"
[[bin]]
name = "hello-thrift-client"
path = "src/hello/thrift_client.rs"
# hello tls
[[bin]]
name = "hello-tls-grpc-server"
path = "src/hello_grpc_tls/grpc_tls_server.rs"
required-features = ["tls"]
[[bin]]
name = "hello-tls-grpc-client"
path = "src/hello_grpc_tls/grpc_tls_client.rs"
required-features = ["tls"]
# compression
[[bin]]
name = "compresion-grpc-server"
path = "src/compression/grpc_server.rs"
[[bin]]
name = "compression-grpc-client"
path = "src/compression/grpc_client.rs"
# multiplex
[[bin]]
name = "multiplex-grpc-server"
path = "src/multiplex/grpc_server.rs"
[[bin]]
name = "multiplex-grpc-client"
path = "src/multiplex/grpc_client.rs"
[[bin]]
name = "multiplex-thrift-server"
path = "src/multiplex/thrift_server.rs"
[[bin]]
name = "multiplex-thrift-client"
path = "src/multiplex/thrift_client.rs"
# streaming
[[bin]]
name = "streaming-grpc-server"
path = "src/streaming/grpc_server.rs"
[[bin]]
name = "streaming-grpc-client"
path = "src/streaming/grpc_client.rs"
# loadbalance
[[bin]]
name = "loadbalance-grpc-server"
path = "src/loadbalance/grpc_server.rs"
[[bin]]
name = "loadbalance-grpc-client"
path = "src/loadbalance/grpc_client.rs"
# unknown
[[bin]]
name = "unknown-thrift-server"
path = "src/unknown/thrift_server.rs"
[[bin]]
name = "unknown-thrift-client"
path = "src/unknown/thrift_client.rs"
# http
[[bin]]
name = "http-simple"
path = "src/http/simple.rs"
[dependencies]
anyhow.workspace = true
async-stream.workspace = true
bytes.workspace = true
faststr.workspace = true
lazy_static.workspace = true
metainfo.workspace = true
motore.workspace = true
serde.workspace = true
tokio = { workspace = true, features = ["full"] }
tokio-stream.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
pilota.workspace = true
volo = { path = "../volo" }
volo-grpc = { path = "../volo-grpc" }
volo-thrift = { path = "../volo-thrift", features = ["multiplex"] }
volo-http = { path = "../volo-http", features = ["full"] }
volo-gen = { path = "./volo-gen" }
# TLS dependencies
librustls = { workspace = true, optional = true }
rustls-pemfile = { workspace = true, optional = true }
rustls-pki-types = { workspace = true, optional = true }
tokio-rustls = { workspace = true, optional = true }
[features]
tls = [
"librustls",
"rustls-pemfile",
"rustls-pki-types",
"tokio-rustls",
"volo/rustls",
"volo-grpc/rustls",
]