-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathCargo.toml
More file actions
283 lines (268 loc) · 8.79 KB
/
Cargo.toml
File metadata and controls
283 lines (268 loc) · 8.79 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
#
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
[package]
name = "quilkin"
version.workspace = true
authors = [
"Mark Mandel <markmandel@google.com>",
"Ifeanyi Ubah <ifeanyi.ubah@embark-studios.com>",
"Erin Power <erin.power@embark-studios.com>",
]
license.workspace = true
description = "Quilkin is a non-transparent UDP proxy specifically designed for use with large scale multiplayer dedicated game server deployments, to ensure security, access control, telemetry data, metrics and more."
homepage = "https://github.com/EmbarkStudios/quilkin"
repository = "https://github.com/EmbarkStudios/quilkin"
readme = "README.md"
keywords = [
"proxy",
"game-server",
"game-development",
"networking",
"multiplayer",
]
categories = ["game-development", "network-programming"]
edition.workspace = true
exclude = ["docs", "build", "examples", "image"]
[profile.lto]
inherits = "release"
opt-level = 3
codegen-units = 1
lto = "fat"
[features]
default = ["jemalloc"]
instrument = []
mimalloc = ["dep:mimalloc"]
heap-stats = ["dep:crossbeam-utils"]
jemalloc = ["dep:tikv-jemallocator", "dep:tikv-jemalloc-ctl", "dep:jemalloc_pprof"]
[lints]
workspace = true
[dependencies]
# Local
quilkin-macros = { version = "0.10.0", path = "./crates/macros" }
quilkin-proto.workspace = true
quilkin-system.workspace = true
quilkin-types.workspace = true
quilkin-xds.workspace = true
corrosion.workspace = true
# Crates.io
arc-swap.workspace = true
async-stream.workspace = true
async-trait.workspace = true
base64.workspace = true
base64-serde = "0.8.0"
bytes.workspace = true
camino.workspace = true
cfg-if = "1.0"
chacha20 = { version = "0.10", default-features = false, features = ["cipher"] }
crossbeam-utils = { version = "0.8", optional = true }
clap = { version = "4.5.54", features = ["cargo", "derive", "env"] }
dashmap = { version = "6.1", features = ["serde"] }
either = "1.15.0"
eyre.workspace = true
fixedstr.workspace = true
futures.workspace = true
futures-util.workspace = true
http-body-util = "0.1"
hyper = { version = "1.8", features = ["http2", "http1", "server"] }
hyper-rustls = { version = "0.27", default-features = false, features = [
"http2",
"webpki-roots",
"ring",
] }
ipnetwork = { version = "0.21.1", features = ["serde"] } # keep in sync with maxmind
kube-lease-manager.workspace = true
k8s-openapi.workspace = true
maxminddb = "0.27.1"
notify = "8.2"
num_cpus = "1.17.0"
mimalloc = { version = "0.1.48", optional = true }
ndarray.workspace = true
nnls.workspace = true
once_cell.workspace = true
parking_lot.workspace = true
prometheus.workspace = true
prometheus-client.workspace = true
prost.workspace = true
prost-types.workspace = true
rand.workspace = true
regex.workspace = true
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_regex = "1.1.0"
serde_yaml = "0.9.34"
socket2.workspace = true
stable-eyre = "0.2.2"
thiserror.workspace = true
time.workspace = true
tokio.workspace = true
tokio-stream.workspace = true
tokio-util.workspace = true
tonic.workspace = true
tower.workspace = true
tracing.workspace = true
tracing-futures.workspace = true
tracing-subscriber = { workspace = true, features = ["json", "env-filter"] }
tryhard.workspace = true
typemap_rev = "0.3.0"
url.workspace = true
uuid.workspace = true
lasso = { version = "0.7.3", features = ["multi-threaded"] }
kube.workspace = true
kube-core.workspace = true
hickory-resolver = { version = "0.25.2", features = [
"https-ring",
"system-config",
] }
strum = "0.27"
strum_macros = "0.27"
libflate = "2.2.1"
form_urlencoded = "1.2.2"
enum_dispatch = "0.3.13"
gxhash = "3.5.0"
rustls = { version = "0.23", default-features = false }
tracing-appender.workspace = true
axum.workspace = true
hyper-util.workspace = true
[target.'cfg(not(target_env = "msvc"))'.dependencies]
jemalloc_pprof = { workspace = true, optional = true }
tikv-jemallocator = { workspace = true, optional = true }
tikv-jemalloc-ctl = { workspace = true, optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
io-uring = { version = "0.7", default-features = false }
libc.workspace = true
pprof = { version = "0.13.1", package = "pprof2" }
quilkin-xdp = { version = "0.1.0", path = "crates/xdp" }
slab = "0.4"
sys-info = "0.9.1"
[dev-dependencies]
once_cell.workspace = true
pretty_assertions = "1.4.1"
rand.workspace = true
regex.workspace = true
tracing-test = "0.2.5"
tempfile.workspace = true
axum-test = "18.6.0"
# We want debug information when doing benchmarks for debugging purposes as well
# as better (correct) callstacks in perf
[profile.bench]
debug = true
[workspace]
#"crates/nmap-service-probes",
members = [
".",
"crates/agones",
"crates/corrosion",
"crates/corrosion-tests",
"crates/macros",
"crates/proto-gen",
"crates/quilkin-proto",
"crates/system",
"crates/test",
"crates/types",
"crates/xdp",
"crates/xds",
]
[workspace.package]
license = "Apache-2.0"
edition = "2024"
version = "0.10.0"
[workspace.dependencies]
arc-swap = { version = "1.8.0", features = ["serde"] }
async-stream = "0.3.6"
async-trait = "0.1.89"
axum = { version = "0.8.8", features = ["macros"] }
base64 = "0.22.1"
bytes = { version = "1.11.1", features = ["serde"] }
compact_str = "0.7"
corrosion = { path = "crates/corrosion" }
data-encoding = "2.10"
eyre = "0.6.12"
fixedstr = { version = "0.5", features = ["flex-str"] }
futures = "0.3.31"
futures-util = "0.3.31"
hyper-util = { version = "0.1", features = ["client", "client-legacy"] }
jemalloc_pprof = { version = "0.8", features = ["symbolize"] }
kube = { version = "3.0", features = [
"runtime",
"rustls-tls",
"client",
], default-features = false }
kube-core = { version = "3.0", default-features = false, features = [
"schema",
] }
kube-lease-manager = "0.11.1"
k8s-openapi = { version = "=0.27.0", features = ["v1_33", "schemars"] }
libc = "0.2"
ndarray = "0.16"
nnls = "0.4"
once_cell = "1.21.3"
parking_lot = "0.12.5"
prometheus = { version = "0.14", default-features = false }
prometheus-client = { version = "0.24" }
prost = "0.14"
prost-types = "0.14"
quilkin = { path = "." }
quilkin-proto = { version = "0.10.0", path = "crates/quilkin-proto" }
quilkin-system = { version = "0.10.0", path = "crates/system" }
quilkin-types = { version = "0.10.0", path = "crates/types" }
quilkin-xds = { version = "0.10.0", path = "crates/xds" }
rand = "0.9"
regex = "1.12.2"
schemars = { version = "1.2", features = ["bytes1", "url2"] }
serde = { version = "1.0.228", features = ["derive", "rc"] }
serde_json = "1.0.149"
socket2 = { version = "0.6", features = ["all"] }
tempfile = "3.24.0"
thiserror = "2.0.17"
tikv-jemalloc-ctl = { version = "0.6", features = ["stats"] }
tikv-jemallocator = { version = "0.6", features = ["profiling", "unprefixed_malloc_on_supported_platforms"] }
time = { version = "0.3", default-features = false, features = ["std"] }
tokio = { version = "1.49.0", features = [
"rt-multi-thread",
"fs",
"signal",
"test-util",
"parking_lot",
"tracing",
] }
tokio-stream = { version = "0.1.18", features = ["net", "sync"] }
tokio-util = "0.7.18"
tonic = { version = "0.14", default-features = false, features = ["codegen", "router", "tls-ring", "transport"] }
tonic-prost = "0.14"
tower = "0.5"
tracing = "0.1.44"
tracing-appender = "0.2.4"
tracing-futures = { version = "0.2.5", features = ["futures-03"] }
tracing-subscriber = "0.3"
tryhard = "0.5.2"
url = { version = "2.5.8", features = ["serde"] }
uuid = { version = "1.19.0", default-features = false, features = ["v4"] }
xdp = "0.7.1"
# Corrosion libraries. The libraries that corrosion transitively depends on that
# we also need to depend on should be kept in line with the versions used by corrosion
camino = "1.2"
corro-agent = { git = "https://github.com/EmbarkStudios/corrosion", branch = "misc" }
corro-api-types = { git = "https://github.com/EmbarkStudios/corrosion", branch = "misc" }
corro-client = { git = "https://github.com/EmbarkStudios/corrosion", branch = "misc" }
corro-types = { git = "https://github.com/EmbarkStudios/corrosion", branch = "misc" }
rusqlite = "=0.38"
spawn = { git = "https://github.com/EmbarkStudios/corrosion", branch = "misc" }
sqlite-pool = { git = "https://github.com/EmbarkStudios/corrosion", branch = "misc" }
tripwire = { git = "https://github.com/EmbarkStudios/corrosion", branch = "misc" }
uhlc = "0.7"
[workspace.lints.clippy]
undocumented_unsafe_blocks = "deny"