Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
235 lines (228 loc) · 8.06 KB
/
Copy pathCargo.toml
File metadata and controls
235 lines (228 loc) · 8.06 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
# quinn-proto 0.11.17 subtracts evicted DATAGRAM bytes twice and panics under
# relay backpressure. Pin the upstream 0.11.x fix for both clients and master.
# Remove when a crates.io release includes quinn-rs/quinn#2806.
[patch.crates-io]
quinn-proto = { git = "https://github.com/quinn-rs/quinn", rev = "f650e0f213b01ea7bebd60023e5df7df65e5c2bd" }
[workspace]
resolver = "3"
members = [
"crates/anim_iw4",
"crates/approved_tests",
"crates/asset_core",
"crates/asset_anim",
"crates/asset_audio",
"crates/asset_game",
"crates/asset_iw4",
"crates/asset_material",
"crates/asset_model",
"crates/asset_transport",
"crates/asset_world",
"crates/assets",
"crates/bootstrap",
"crates/audio",
"crates/bots",
"crates/clipmap_iw4",
"crates/console",
"crates/d3d9_decl",
"crates/d3d9_sm3",
"crates/d3d9_state",
"crates/diag",
"crates/dpvs_iw4",
"crates/entity_iw4",
"crates/fastfile_iw4",
"crates/fastfile_t5",
"crates/fastfile_iw5",
"crates/frame",
"crates/fx",
"crates/fx_iw4",
"crates/gamemode_iw4",
"crates/hud",
"crates/hud_iw4",
"crates/killcam_iw4",
"crates/sound_iw4",
"crates/input_iw4",
"crates/launcher",
"crates/lighting_iw4",
"crates/marks_iw4",
"crates/master_protocol",
"crates/math_iw4",
"crates/movement_iw4",
"crates/net",
"crates/iw4l-master",
"crates/perf",
"crates/playerstate_iw4",
"crates/render",
"crates/render_anim",
"crates/render_backend",
"crates/render_frame",
"crates/render_frontend",
"crates/render_fx",
"crates/render_gpu",
"crates/render_material",
"crates/render_scene",
"crates/replay",
"crates/session",
"crates/sim",
"crates/trace_iw4",
"crates/ui",
"crates/updater",
"crates/weapon_iw4",
"crates/xmodel_runtime",
"xtask",
]
[workspace.package]
edition = "2024"
license = "Apache-2.0"
[workspace.dependencies]
bevy = { version = "0.19", default-features = false, features = [
"bevy_window",
"bevy_winit",
"bevy_ui",
"bevy_ui_render",
"bevy_text",
"bevy_render",
"bevy_core_pipeline",
"bevy_log",
"bevy_sprite",
"bevy_sprite_render",
"bevy_asset",
"bevy_audio",
"bevy_gilrs",
"multi_threaded",
"x11",
"wayland",
"png",
"system_clipboard",
"bevy_ui_widgets",
"ui_picking",
] }
bevy_ecs = "0.19"
miniz_oxide = "0.8"
bcdec_rs = "0.2"
flate2 = { version = "1.1", default-features = false, features = ["zlib-rs"] }
zip = { version = "6", default-features = false, features = ["deflate"] }
dotenvy = "0.15"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
async-lock = "3"
sha2 = "0.10"
png = "0.18"
anim_iw4 = { path = "crates/anim_iw4" }
asset_iw4 = { path = "crates/asset_iw4" }
asset_core = { path = "crates/asset_core" }
asset_anim = { path = "crates/asset_anim" }
asset_audio = { path = "crates/asset_audio" }
asset_game = { path = "crates/asset_game" }
asset_transport = { path = "crates/asset_transport" }
asset_material = { path = "crates/asset_material" }
asset_model = { path = "crates/asset_model" }
asset_world = { path = "crates/asset_world" }
assets = { path = "crates/assets" }
audio = { path = "crates/audio" }
bots = { path = "crates/bots" }
clipmap_iw4 = { path = "crates/clipmap_iw4" }
console = { path = "crates/console" }
d3d9_decl = { path = "crates/d3d9_decl" }
d3d9_sm3 = { path = "crates/d3d9_sm3" }
d3d9_state = { path = "crates/d3d9_state" }
diag = { path = "crates/diag" }
dpvs_iw4 = { path = "crates/dpvs_iw4" }
entity_iw4 = { path = "crates/entity_iw4" }
fastfile_iw4 = { path = "crates/fastfile_iw4" }
fastfile_t5 = { path = "crates/fastfile_t5" }
fastfile_iw5 = { path = "crates/fastfile_iw5" }
frame = { path = "crates/frame" }
fx = { path = "crates/fx" }
fx_iw4 = { path = "crates/fx_iw4" }
gamemode_iw4 = { path = "crates/gamemode_iw4" }
hud = { path = "crates/hud" }
hud_iw4 = { path = "crates/hud_iw4" }
killcam_iw4 = { path = "crates/killcam_iw4" }
sound_iw4 = { path = "crates/sound_iw4" }
input_iw4 = { path = "crates/input_iw4" }
launcher = { path = "crates/launcher" }
lighting_iw4 = { path = "crates/lighting_iw4" }
marks_iw4 = { path = "crates/marks_iw4" }
math_iw4 = { path = "crates/math_iw4" }
master_protocol = { path = "crates/master_protocol" }
movement_iw4 = { path = "crates/movement_iw4" }
net = { path = "crates/net" }
perf = { path = "crates/perf" }
playerstate_iw4 = { path = "crates/playerstate_iw4" }
render = { path = "crates/render" }
render_anim = { path = "crates/render_anim" }
render_backend = { path = "crates/render_backend" }
render_frame = { path = "crates/render_frame" }
render_frontend = { path = "crates/render_frontend" }
render_fx = { path = "crates/render_fx" }
render_gpu = { path = "crates/render_gpu" }
render_material = { path = "crates/render_material" }
render_scene = { path = "crates/render_scene" }
session = { path = "crates/session" }
replay = { path = "crates/replay" }
sim = { path = "crates/sim" }
trace_iw4 = { path = "crates/trace_iw4" }
ui = { path = "crates/ui" }
weapon_iw4 = { path = "crates/weapon_iw4" }
xmodel_runtime = { path = "crates/xmodel_runtime" }
glam = "0.32.1"
# Transcribing a retail constant at full precision is the requirement, not a
# style slip. `clippy::excessive_precision` fired on
# `0.0005882352706976235` — the exact f32 read out of the retail image with
# `re data` — and rejected an iteration that had ported two more branches of
# PM_Friction. Shortening such a literal to "enough" digits is the silent
# approximation this project exists to forbid, so the lint has to go rather
# than the digits.
[workspace.lints.clippy]
excessive_precision = "allow"
# Retail constants must preserve the transcribed f32 bits. Replacing a literal
# with a mathematical standard-library constant can change those bits.
approx_constant = "allow"
assertions_on_constants = "deny"
# Measured and kept: wall p50 -5.7%, binary 183 MB -> 114 MB. Do not drop these
# two lines without a new two-map A/B on the same protocol.
#
# Live recipes (`make map` / `play` / `bench` / `bench-live` / …) do not use this profile.
# Fat LTO: `PROFILE=release` on a live target when the number must match the
# LTO binary's.
# Fat LTO + one codegen unit stay on this profile only. `make deploy` does not
# select it; that is `PROFILE=release`.
[profile.release]
lto = true
codegen-units = 1
strip = "symbols"
# The dev loop, including `make bench` and the default Windows/master
# deploy path. Same opt-level as release (Bevy is unusable without it), minus
# the two settings whose cost is paid at *link* time: fat LTO over the whole
# dependency graph in one codegen unit is a single-threaded rustc at ~6.6 GB
# that reruns after an edit in any crate. That link was timed at 13m03s.
# That link, not the game, is what `make play` was waiting on.
#
# `lto = false` keeps crate-local ThinLTO; `"off"` is not required.
# Incremental is for workspace recompiles after the first fill of this
# profile cache. Strip lives here, not in RUSTFLAGS: env RUSTFLAGS override
# target rustflags and would split the play/release fingerprint.
#
# Separate profile rather than a relaxed `[profile.release]`: the release
# binary the published numbers describe has to stay buildable.
# Frame-time cost of `play` vs `release` is NOT measured here — that A/B is
# `make bench <demo>` vs `make bench <demo> PROFILE=release`.
[profile.play]
inherits = "release"
opt-level = 3
lto = false
codegen-units = 16
incremental = true
strip = "symbols"
# The binary a sampler can read (`make bench-perf`). Same code as
# [profile.play] — opt-level and codegen-units unchanged, so the frame times it
# samples are the frame times `make bench-live` reports — plus the two things
# perf needs and a release build drops: DWARF line tables (`debug = 1`) to name
# a frame, and a frame pointer in every function (`-Cforce-frame-pointers=yes`,
# set by the recipe) so `--call-graph fp` can walk out of it. Strip is off so
# those line tables survive. Its own profile dir: play/release fingerprints
# stay one cache, no relink on a bench↔perf switch.
[profile.perf]
inherits = "play"
debug = 1
strip = "none"