-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (60 loc) · 1.89 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (60 loc) · 1.89 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
[workspace]
members = [
"crates/sim_core",
"crates/sim_db",
"crates/sim_protocol",
"crates/sim_server",
"crates/client_bevy",
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["David Clausen"]
[workspace.dependencies]
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Async runtime (sim_server only)
tokio = { version = "1", features = ["full"] }
axum = { version = "0.8", features = ["ws"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace"] }
# Database (sim_server only)
sqlx = { version = "0.8", features = ["sqlite", "runtime-tokio", "json", "migrate", "macros"] }
# Concurrency
dashmap = "6"
flume = "0.11"
rayon = "1"
arc-swap = "1"
# ECS (entity-component storage, archetype-based, cache-friendly at scale).
# Migrated from hecs 0.10 in feat/bevy-ecs-migration — see
# BEVY-ECS-MIGRATION-PLAN.md. Pinned to match bevy 0.18 in client_bevy
# so both binaries share one ECS implementation in the dep graph.
bevy_ecs = "0.18"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
# Error handling
anyhow = "1"
thiserror = "2"
# Utilities
uuid = { version = "1", features = ["v4"] }
rand = "0.8"
ordered-float = "4"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
# Bevy's recommended dev-mode recipe. Default debug builds compile
# sim_core's hot loops at opt-level = 0, which murders the embedded
# tick (we measured p50 = 337 ms at 1604 ships). opt-level = 1 on
# user code keeps compile times reasonable; opt-level = 3 on deps
# (Bevy itself, bevy_ecs, sqlx, etc.) is rebuilt rarely so the cost is
# amortised. Expect a 3-5× tick speedup vs the default.
# https://bevyengine.org/learn/quick-start/getting-started/setup/#compile-with-performance-optimizations
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3