-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
67 lines (58 loc) · 1.7 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
[package]
name = "game"
description = "a bevy game template"
repository = "https://github.com/eerii/hello-bevy"
authors = ["Eri <[email protected]>"]
license = "Apache-2.0 OR MIT"
version = "0.14.1"
edition = "2021"
exclude = ["assets", "wasm", ".data"]
[features]
# Feature sets
default = ["dev"]
dev = [
"common",
"bevy/dynamic_linking",
"bevy/bevy_dev_tools",
"bevy/embedded_watcher",
"bevy/file_watcher",
]
release = ["common", "embedded"]
common = []
# Individual features
embedded = ["include_dir"]
inspector = ["bevy-inspector-egui"]
trace = ["release", "bevy/trace_tracy"]
[dependencies]
# Bevy and plugins
bevy = { version = "0.15", features = ["serialize", "wayland"] }
bevy-inspector-egui = { version = "0.28", optional = true }
leafwing-input-manager = "0.16"
# Local crates
macros = { path = "macros" }
# Other dependencies
anyhow = { version = "1.0" }
include_dir = { version = "0.7", optional = true }
log = { version = "*", features = [
"max_level_debug",
"release_max_level_warn",
] }
macro_rules_attribute = { version = "0.2" }
rand = { version = "0.8" }
serde = { version = "1.0", features = ["derive"] }
toml = { version = "0.8" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = ["Storage"] }
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3 # Improves performance when developing, but slows down first compilation significantly
debug = false # Disabled debug symbols for dependencies
[profile.release]
codegen-units = 1
lto = "thin"
opt-level = 3 # Optimize for performance
[profile.release-web] # Overrides for web builds
inherits = "release"
opt-level = "s" # Optimize for size
strip = "debuginfo" # Removes debug information