-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
71 lines (62 loc) · 2.26 KB
/
Copy pathCargo.toml
File metadata and controls
71 lines (62 loc) · 2.26 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
[workspace]
resolver = "2"
members = ["packages/*"]
[workspace.package]
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Ashscript Contributors"]
homepage = "https://github.com/Ashscript-Game/ashscript"
repository = "https://github.com/Ashscript-Game/ashscript"
# Dependencies shared across packages are declared once here and referenced
# with `{ workspace = true }` in each member, keeping versions in lockstep.
[workspace.dependencies]
# Internal
ashscript-types = { path = "packages/ashscript-types" }
# Shared third-party
serde = { version = "1.0.213", features = ["derive"] }
serde_json = "1.0.132"
hexx = { version = "0.18.0", features = ["serde"] }
hashbrown = { version = "0.15.0", features = ["serde"] }
enum-map = { version = "2.7.3", features = ["serde"] }
enum-iterator = "2.1.0"
glam = "0.27.0"
uuid = { version = "1.11.0", features = ["serde", "v4"] }
hecs = { version = "0.10.5", features = ["serde"] }
postcard = { version = "1.0.10", features = ["use-std"] }
libnoise = "1.1.2"
log = "0.4.22"
rand = "0.8.5"
# Tracing / observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "json"] }
tracing-appender = "0.2"
# Async / server stack
tokio = { version = "1.40.0", features = ["full"] }
axum = "0.7.7"
socketioxide = { version = "0.14.1", features = ["state"] }
# Profiles live at the workspace root (Cargo ignores profiles in member crates).
# These follow Bevy's recommended setup: optimize dependencies even in dev so the
# client stays playable, while keeping the local crates quick to recompile.
[profile.dev]
debug = 0
strip = "debuginfo"
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
[profile.release]
opt-level = 3
debug = 0
strip = "debuginfo"
# lto = "thin" # Enable for more inlining with a bigger tradeoff in compile times
# Note: `panic = "abort"` is intentionally NOT set here. It lives in the
# `distribution` profile (used to ship the client) so that the long-running
# server binaries keep unwinding — a panic in one tokio connection task should
# not abort the whole process.
# Ship this to players:
# cargo build --profile distribution -F tracing/release_max_level_error -F log/release_max_level_off
[profile.distribution]
inherits = "release"
panic = "abort"
strip = true
lto = "thin"
codegen-units = 1