-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
149 lines (132 loc) · 3.45 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
[workspace]
members = [
"ungame",
"tools/ghost_radio",
"uncore",
"ungear",
"unstd",
"ungearitems",
"unmaphub",
"untruck",
"unplayer",
"unghost",
"unmenu",
"unlight",
"unnpc",
"untmxmap",
"unsettings",
"unmenusettings",
"unfog",
]
resolver = "3"
[workspace.package]
version = "0.2.6"
edition = "2024"
description = "2D isometric Game about investigating paranormal hauntings"
repository = "https://github.com/deavid/unhaunter/"
license = "Apache-2.0"
authors = ["David Martínez Martí <deavidsedice@gmail.com>"]
[workspace.dependencies]
rand = { version = "0.9", default-features = false, features = [
"small_rng",
"alloc",
"std_rng",
] }
enum-iterator = "2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
ron = "0.8"
image = "0.25"
regex = "1.7"
clap = "4.5"
fastapprox = "0.3"
anyhow = "1.0"
thiserror = "2.0"
ordered-float = { version = "5.0", features = ["serde"] }
hierarchical_pathfinding = "0.5"
walkdir = "2.5"
glob = "0.3"
tiled = { version = "0.14", features = ["wasm"] }
wasm-bindgen = "0.2"
normalize-path = "0.2"
itertools = "0.14.0"
dirs = "6.0"
strum = { version = "0.27", features = ["derive"] }
noise = { version = "0.9.0", features = ["std"] }
bevy = "0.15"
bevy-persistent = { version = "0.7", features = ["all"] }
bevy_framepace = "0.18"
bevy_dylib = "0.15"
ndarray = "0.16.1"
[package]
name = "unhaunter"
default-run = "unhaunter_game"
version.workspace = true
edition.workspace = true
description.workspace = true
repository.workspace = true
license.workspace = true
authors.workspace = true
[dependencies]
uncore = { path = "uncore" }
unstd = { path = "unstd" }
unfog = { path = "unfog" }
ungear = { path = "ungear" }
ungearitems = { path = "ungearitems" }
unmaphub = { path = "unmaphub" }
untruck = { path = "untruck" }
ungame = { path = "ungame" }
unplayer = { path = "unplayer" }
unghost = { path = "unghost" }
unlight = { path = "unlight" }
unmenu = { path = "unmenu" }
unnpc = { path = "unnpc" }
untmxmap = { path = "untmxmap" }
unsettings = { path = "unsettings" }
unmenusettings = { path = "unmenusettings" }
wasm-bindgen = { workspace = true }
bevy = { workspace = true }
ordered-float = { workspace = true }
[build-dependencies]
walkdir = { workspace = true }
[[bin]]
name = "unhaunter_game"
path = "unhaunter/src/bin/unhaunter.rs"
[lib]
crate-type = ["cdylib", "rlib"]
path = "unhaunter/src/lib.rs"
[target.'cfg(target_os = "linux")'.dependencies]
bevy_dylib = { workspace = true }
[profile.dev]
opt-level = "s"
lto = "thin"
debug-assertions = true
overflow-checks = true
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
[profile.dev.package."*"]
opt-level = "s"
debug = false
strip = "debuginfo"
codegen-units = 1
debug-assertions = true
overflow-checks = true
# These optimizations for release are trying to target mostly WASM
[profile.release]
opt-level = "s"
# TODO: When WASM gets its own release profile we will keep some debug info to do profiling as well on release.
debug = false
strip = "debuginfo"
# --
debug-assertions = false
overflow-checks = false
lto = "thin"
codegen-units = 1
# TODO: wasm-pack v0.13.2 or v0.14.0 is going to implement custom profiles with --profile $PROFILE.
# This will allow us to have a custom profile for WASM builds, and then make it much more aggressive.
[profile.release.package."*"]
opt-level = "s"
debug = false
strip = "debuginfo"
debug-assertions = false
overflow-checks = false
codegen-units = 1