-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathCargo.toml
217 lines (171 loc) · 4.83 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
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
[workspace]
resolver = "2"
members = [
"lightyear",
"macros",
# internal
"benches/*",
"examples/*",
]
default-members = ["lightyear"]
exclude = ["examples/certificates"]
[workspace.package]
version = "0.18.0"
authors = ["Charles Bournhonesque <[email protected]>"]
publish = false
edition = "2021"
rust-version = "1.82"
license = "MIT OR Apache-2.0"
# Enable max optimizations for dependencies, but not for our code:
[profile.dev.package."*"]
opt-level = 3
# If your own code does CPU-intensive work, you might want to also enable some optimization for it.
# Enable only a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Here is a configuration for the most aggressive optimizations possible
# Read this when trying to optimise WASM build: https://bevy-cheatbook.github.io/platforms/wasm/size-opt.html
[profile.release]
lto = true
opt-level = 3
codegen-units = 1
incremental = false
debug = false
[workspace.dependencies]
lightyear_examples_common = { path = "./examples/common", default-features = false }
lightyear = { path = "./lightyear", version = "0.18.0", default-features = false }
# utils
anyhow = { version = "1.0.75", features = [] }
clap = { version = "4.5.4", features = ["derive"] }
chrono = "0.4.38"
cfg-if = "1.0"
enum_dispatch = "0.3"
governor = "0.7.0"
nonzero_ext = "0.3.0"
parking_lot = "0.12.3"
paste = "1.0"
rand = "0.8"
ringbuffer = "0.15"
thiserror = "2.0.3"
seahash = "4.1.0"
zstd = "0.13.1"
# serialization
bincode = { version = "2.0.0-rc.3", features = ["serde"] }
byteorder = "1.5.0"
bytes = { version = "1.8", features = ["serde"] }
self_cell = "1.0"
serde = { version = "1", features = ["derive"] }
# netcode
chacha20poly1305 = { version = "0.10", features = ["std"] }
# derive
lightyear_macros = { version = "0.18.0", path = "./macros" }
# tracing
tracing = "0.1.40"
tracing-log = "0.2.0"
tracing-subscriber = { version = "0.3.17", features = [
"registry",
"env-filter",
] }
# server
crossbeam-channel = { version = "0.5.13", features = [] }
# metrics
metrics = "0.24"
metrics-util = "0.19"
metrics-tracing-context = "0.18"
metrics-exporter-prometheus = { version = "0.16", default-features = false, features = [
"http-listener",
] }
# compression
lz4_flex = { version = "0.11", default-features = false, features = ["std"] }
# WebSocket
futures-util = "0.3.30"
# transport
# we don't need any tokio features, we use only use the tokio channels
tokio = { version = "1.36", features = [
"sync",
"macros",
], default-features = false }
futures = "0.3.30"
async-compat = "0.2.3"
async-channel = "2.2.0"
# Non-WASM things
steamworks = "0.11"
wtransport = { version = "=0.5.0", features = [
"quinn",
"self-signed",
"dangerous-configuration",
] }
tokio-tungstenite = { version = "0.23.0", features = ["connect", "handshake"] }
# WASM things
console_error_panic_hook = "0.1.7"
web-sys = { version = "0.3", features = [
"Document",
"WebTransport",
"WebTransportHash",
"WebTransportOptions",
"WebTransportBidirectionalStream",
"WebTransportSendStream",
"WebTransportReceiveStream",
"ReadableStreamDefaultReader",
"WritableStreamDefaultWriter",
"WebTransportDatagramDuplexStream",
"WebSocket",
"CloseEvent",
"ErrorEvent",
"MessageEvent",
"BinaryType",
] }
# latest version that still uses bevy 0.14:
bevy_web_keepalive = "0.3.4"
futures-lite = "2.1.0"
getrandom = { version = "0.2.11", features = [
"js", # feature 'js' is required for wasm
] }
xwt-core = "0.6"
xwt-web = "0.15.0"
wasm-bindgen = "0.2.90"
wasm-bindgen-futures = "0.4.42"
# dev deps
wasm-bindgen-test = "0.3.39"
mock_instant = "0.5"
bitvec = "1.0"
approx = "0.5.1"
# Bevy
# (we add back features needed for gui clients if desired)
bevy = { version = "0.15", default-features = false, features = [
"multi_threaded",
"bevy_state",
"serialize",
"bevy_asset",
"bevy_state",
"bevy_color",
"multi_threaded",
"sysinfo_plugin",
] }
# input
leafwing-input-manager = { version = "0.16", default-features = false, features = [
"keyboard",
] }
# physics
avian2d = { version = "0.2", default-features = false }
avian3d = { version = "0.2", default-features = false }
# gui debug ui
# TODO: switch to the released version once inspector upgrades to bevy_egui 0.32
bevy-inspector-egui = { git = "https://github.com/blip-radar/bevy-inspector-egui.git", branch = "egui-0.30", default-features = false, features = [
"bevy_pbr",
"bevy_image",
"bevy_render",
"egui_open_url",
] }
bevy_egui = { version = "0.32", default-features = false, features = [
"open_url",
"default_fonts",
"render",
] }
bevy_metrics_dashboard = "0.4"
egui_extras = "0.30"
# bevygap for deploying on Edgegap
bevygap_server_plugin = { version = "0.3.1" }
bevygap_client_plugin = { version = "0.3.1" }
[workspace.lints.clippy]
type_complexity = "allow"