Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
441 lines (366 loc) · 11.6 KB
/
Copy pathCargo.toml
File metadata and controls
441 lines (366 loc) · 11.6 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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
[profile]
[profile.dev]
incremental = true
[profile.release-debug]
debug = true
inherits = 'release'
[profile.release-full]
codegen-units = 1
debug = false
inherits = 'release'
lto = 'fat'
panic = 'abort'
[workspace]
members = [
'crates/bvh',
'crates/bvh-region',
'crates/geometry',
'crates/hyperion',
'crates/hyperion-clap',
'crates/hyperion-command',
'crates/hyperion-crafting',
'crates/hyperion-event-macros',
'crates/hyperion-event-runner',
'crates/hyperion-genmap',
'crates/hyperion-gui',
'crates/hyperion-hot-reload',
'crates/hyperion-hot-reload/demo/host',
'crates/hyperion-hot-reload/demo/index-probe-host',
'crates/hyperion-hot-reload/demo/index-probe-module',
'crates/hyperion-hot-reload/demo/module',
'crates/hyperion-inventory',
'crates/hyperion-item',
'crates/hyperion-minecraft-proto',
'crates/hyperion-minecraft-proto-derive',
'crates/hyperion-packet-macros',
'crates/hyperion-palette',
'crates/hyperion-permission',
'crates/hyperion-proxy',
'crates/hyperion-proxy-proto',
'crates/hyperion-reload-client',
'crates/hyperion-utils',
'crates/hyperion-web-console',
'crates/packet-channel',
'events/bedwars',
'events/smash',
'events/smash-rules',
'tools/rust-mc-bot',
]
resolver = '2'
[workspace.dependencies]
aes = '0.9.2'
anyhow = "1.0.104"
# 0.6.0-rc2 rather than 0.5.1: it is the newest published version and 0.5.1
# dates from 2022. Used only by tests, through assert_relative_eq, which 0.6
# keeps. Drop the rc suffix when 0.6.0 ships.
approx = "0.6.0-rc2"
arc-swap = "1.9.2"
arrayvec = "0.7.8"
base64 = "0.23.0"
bitfield-struct = "0.13.0"
bitvec = "1.1.1"
boxcar = "0.2.14"
bumpalo = "3.20"
byteorder = '1.5.0'
bytes = "1.12.1"
cfb8 = '0.9.1'
colored = "3.1.1"
compact_str = "0.10.0"
convert_case = "0.11.0"
criterion = "0.8.2"
derive-build = '0.1.1'
directories = "6.0.0"
dotenvy = '0.15.7'
eframe = "0.35.0"
egui = "0.35.0"
egui_dock = "0.20.1"
enumset = "1.1.14"
fast_hilbert = "2.1.0"
fastrand = "2.5.0"
flume = "0.12.0"
futures-util = "0.3.33"
# Held at valence's version: `valence_protocol` exposes glam types (`Vec3`,
# `Quat`, `BlockPos`) across its whole public API, and the vendored fork pins
# 0.29.3. Anything newer here puts two glam crates in the tree and every
# valence signature stops accepting the vectors hyperion holds. Moving this
# means bumping glam in TestingPlant/valence first, on both pinned branches.
glam = "0.29.3"
heapless = "0.9.3"
heed = "0.22.1"
hex = '0.4.3'
humantime = "2.4.0"
# The console's web server. hyper and its two helper crates are already
# in the lock through reqwest, so naming them here adds no new tree --
# axum would have. Nothing here needs routing or extractors: five paths
# matched on a string is the whole surface.
http-body-util = "0.1.4"
hyper = "1.11.0"
hyper-util = "0.1.20"
hyperion-proxy = { path = "crates/hyperion-proxy" }
itertools = "0.15.0"
kanal = '0.1.1'
# Held on the 0.2 line: libc 1.0.0-alpha.4 is published, but every other crate
# that reaches libc here (mio, heed, flecs_ecs_sys, getrandom, ndarray and two
# dozen more) requires 0.2, so taking the alpha only adds a second libc to the
# tree without removing the first. Move when the ecosystem does.
libc = "0.2.189"
libdeflater = "1.25.2"
memmap2 = "0.9.11"
mio = { version = "1.2.2", features = ['os-poll', 'net'] }
more-asserts = '0.3.1'
num-derive = "0.5.1"
num-traits = '0.2.19'
num_cpus = "1.17.0"
once_cell = "1.21.4"
ordered-float = "5.3.0"
papaya = "0.2.4"
parking_lot = "0.12.5"
paste = "1.0.15"
plotters-bitmap = "0.3.7"
proc-macro2 = "1.0.107"
proptest = "1.11.0"
quote = "1.0.47"
rand = "0.10.2"
rayon = "1.12.0"
rkyv = "0.8.17"
# Held on the 0.23 line: rustls 0.24.0-dev.1 is published but is a development
# placeholder, and tokio-rustls 0.26, hyper-rustls 0.27, reqwest 0.13 and
# rustls-platform-verifier 0.7 all require 0.23. Nothing can use 0.24 until
# those do.
rustls = { version = "0.23.42", default-features = false, features = ['logging', 'std', 'tls12'] }
rustls-pki-types = "1.15.1"
# Held on the 0.103 line for the same reason as rustls above: rustls 0.23
# depends on 0.103, so 0.104.0-alpha.7 would put two webpki crates in the tree
# and hand hyperion a different WebPkiServerVerifier than rustls builds with.
rustls-webpki = "0.103.13"
serde = "1.0.229"
serde_json = "1.0.151"
serial_test = "4.0.1"
slotmap = "1.1.1"
snafu = "0.9.2"
syn = "3.0.3"
tango-bench = "0.7.2"
tar = "0.4.46"
thiserror = "2.0.19"
thread_local = "1.1.10"
tikv-jemallocator = "0.7.0"
time = "0.3.54"
tokio = "1.53.1"
tokio-rustls = { version = "0.26.4", default-features = false, features = ['logging', 'tls12'] }
toml = "1.1.3"
tracing-appender = "0.2.5"
sha2 = "0.11.0"
uuid = "1.24.0"
[workspace.dependencies.bvh]
path = 'crates/bvh'
[workspace.dependencies.bvh-region]
path = 'crates/bvh-region'
[workspace.dependencies.bytemuck]
features = ['derive']
version = "1.25.2"
[workspace.dependencies.clap]
features = ['derive']
version = "4.6.4"
[workspace.dependencies.derive_more]
features = ['display', 'from', 'into', 'deref', 'deref_mut', 'debug', 'constructor', 'add']
version = "2.1.1"
[workspace.dependencies.divan]
git = 'https://github.com/nvzqz/divan'
[workspace.dependencies.flate2]
default-features = false
version = "1.1.9"
[workspace.dependencies.flecs_ecs]
# Upstream main rather than the 0.2.2 release: it vendors flecs C 4.1.6 instead
# of 4.1.2, makes `World` and `Query` `!Send` with `QueryHandle` for the
# cross-thread case, and fixes a `QueryIter` double free. 0.2.2 is the only
# non-yanked crates.io release and is eight months behind.
#
# Carrying Indra-db/Flecs-Rust#302: main's new sparse-term safety locks hand a
# stage to `flecs_components_get`, which asserts, so every system with a sparse
# term aborts under `set_threads > 1` — which is every system here. Repin on
# upstream once that lands.
#
# Also carrying the shared-dylib change: `crate-type = ["dylib", "rlib"]` plus a
# build script that re-exports flecs's C symbols. Hot reloading needs exactly one
# copy of this crate in the process, because it owns the process-global pool that
# hands out each component type's index into a world's component array. See
# `docs/hot-reload.md`.
features = ['flecs_manual_registration']
git = 'https://github.com/andrewgazelka/Flecs-Rust'
rev = 'f09dc5308d00c6a88c82b1195334b6ed2b2d2868'
[workspace.dependencies.geometry]
path = 'crates/geometry'
[workspace.dependencies.hyperion]
path = 'crates/hyperion'
[workspace.dependencies.hyperion-clap]
path = 'crates/hyperion-clap'
[workspace.dependencies.hyperion-clap-macros]
path = 'crates/hyperion-clap-macros'
[workspace.dependencies.hyperion-command]
path = 'crates/hyperion-command'
[workspace.dependencies.hyperion-crafting]
path = 'crates/hyperion-crafting'
[workspace.dependencies.hyperion-event-macros]
path = 'crates/hyperion-event-macros'
[workspace.dependencies.hyperion-event-runner]
path = 'crates/hyperion-event-runner'
[workspace.dependencies.hyperion-genmap]
path = 'crates/hyperion-genmap'
[workspace.dependencies.hyperion-gui]
path = 'crates/hyperion-gui'
[workspace.dependencies.hyperion-hot-reload]
path = 'crates/hyperion-hot-reload'
[workspace.dependencies.hyperion-inventory]
path = 'crates/hyperion-inventory'
[workspace.dependencies.hyperion-item]
path = 'crates/hyperion-item'
[workspace.dependencies.hyperion-minecraft-proto]
path = 'crates/hyperion-minecraft-proto'
[workspace.dependencies.hyperion-minecraft-proto-derive]
path = 'crates/hyperion-minecraft-proto-derive'
[workspace.dependencies.hyperion-packet-macros]
path = 'crates/hyperion-packet-macros'
[workspace.dependencies.hyperion-palette]
path = 'crates/hyperion-palette'
[workspace.dependencies.hyperion-permission]
path = 'crates/hyperion-permission'
[workspace.dependencies.hyperion-proxy-proto]
path = 'crates/hyperion-proxy-proto'
[workspace.dependencies.hyperion-utils]
path = 'crates/hyperion-utils'
[workspace.dependencies.hyperion-web-console]
path = 'crates/hyperion-web-console'
[workspace.dependencies.packet-channel]
path = 'crates/packet-channel'
[workspace.dependencies.indexmap]
features = ['rayon']
version = "2.14.0"
[workspace.dependencies.ndarray]
features = ["blas"]
version = "0.17.2"
[workspace.dependencies.plotters]
default-features = false
version = "0.3.7"
[workspace.dependencies.reqwest]
# 0.13 renamed `rustls-tls` to `rustls`.
features = ['rustls', 'stream']
version = '0.13.4'
[workspace.dependencies.roaring]
features = ["simd"]
version = "0.11.4"
[workspace.dependencies.rustc-hash]
features = ['nightly']
version = "2.1.3"
[workspace.dependencies.syntect]
default-features = false
version = "5.3.0"
[workspace.dependencies.tokio-util]
features = ['full']
version = "0.7.19"
[workspace.dependencies.tracing]
features = ['release_max_level_info']
version = "0.1.44"
[workspace.dependencies.tracing-subscriber]
features = ['env-filter', 'time']
version = "0.3.23"
[workspace.dependencies.tracing-tracy]
features = ['timer-fallback']
version = '0.11.4'
[workspace.dependencies.valence_anvil]
branch = 'feat-bytes'
features = ['parsing']
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_build_utils]
branch = 'feat-bytes'
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_bytes]
branch = 'feat-bytes'
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_generated]
branch = 'feat-bytes'
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_ident]
branch = 'feat-bytes'
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_nbt]
branch = 'feat-bytes'
features = ['serde']
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_protocol]
branch = 'feat-bytes'
features = ['compression']
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_registry]
branch = 'feat-bytes'
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_server]
branch = 'feat-bytes'
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.valence_text]
branch = 'feat-bytes'
git = 'https://github.com/TestingPlant/valence'
[workspace.dependencies.bedwars]
path = "events/bedwars"
[workspace.dependencies.rust-mc-bot]
path = "tools/rust-mc-bot"
[workspace.lints]
[workspace.lints.clippy]
cast_precision_loss = 'allow'
future_not_send = 'allow'
missing_errors_doc = 'allow'
missing_panics_doc = 'allow'
module_name_repetitions = 'allow'
print_stdout = 'deny'
single_match_else = 'allow'
too_long_first_doc_paragraph = 'allow'
too_many_lines = 'allow'
needless_pass_by_value = 'allow'
type_complexity = 'allow'
too_many_arguments = 'allow'
upper_case_acronyms = 'deny'
[workspace.lints.clippy.complexity]
level = 'deny'
priority = -1
[workspace.lints.clippy.nursery]
level = 'deny'
priority = -1
[workspace.lints.clippy.pedantic]
level = 'deny'
priority = -1
[workspace.lints.clippy.perf]
level = 'deny'
priority = -1
[workspace.lints.clippy.style]
level = 'deny'
priority = -1
[workspace.lints.clippy.suspicious]
level = 'deny'
priority = -1
[workspace.lints.rust]
[workspace.lints.rust.future_incompatible]
level = 'deny'
priority = -1
[workspace.lints.rust.keyword_idents]
level = 'deny'
priority = -1
[workspace.lints.rust.let_underscore]
level = 'deny'
priority = -1
[workspace.lints.rust.nonstandard_style]
level = 'deny'
priority = -1
[workspace.lints.rust.refining_impl_trait]
level = 'deny'
priority = -1
[workspace.lints.rust.rust_2018_idioms]
level = 'deny'
priority = -1
[workspace.lints.rust.rust_2024_compatibility]
level = 'deny'
priority = -1
[workspace.package]
documentation = 'https://andrewgazelka.github.io/hyperion'
edition = '2024'
license = 'Apache-2.0'
repository = 'https://github.com/andrewgazelka/hyperion'
version = '0.1.0'