-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
129 lines (111 loc) · 3.48 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
[package]
name = "minewars_foss"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
publish = false
[workspace]
resolver = "2"
members = [
# binaries:
# (self) # desktop client app
"mobile", # mobile client app
# "bin/mw_authsrv", # Auth Server
# "bin/mw_hostsrv", # Host Server
"bin/mw_certgen", # Cert Mgmt CLI
"bin/mw_datatool", # CLI for mw_dataformat
# "bin/mw_hostrpc", # CLI for controlling Host
# foundational
"lib/common/mw_common", # Common code for everything
"lib/common/mw_dataformat", # Dataformat codec
# client stuff
"lib/app/mw_engine", # Bespoke tech / building blocks
"lib/app/mw_app_core", # APIs/framework for the game client app
"lib/app/mw_app_io", # Files, networking, events, etc.
"lib/app/mw_app", # FOSS part of the game client, sans UI and Graphics
"lib/app/mw_app_gfx2d", # 2D graphics for MineWars
"lib/app/mw_app_gfx3d", # 3D graphics for MineWars
"lib/app/mw_ui_common", # UI building blocks
"lib/app/mw_ui_desktop", # Desktop UI of mw_app
"lib/app/mw_ui_mobile", # Mobile UI of mw_app
"lib/app/mw_platform_android", # Android-specific features
"lib/app/mw_platform_ios", # iOS-specific features
"lib/app/mw_platform_windows", # Windows-specific features
"lib/app/mw_platform_macos", # MacOS-specific features
"lib/app/mw_platform_linux", # Linux-specific features
# gameplay for different game modes
"lib/common/mw_game_minesweeper", # FOSS minesweeper mode (gameplay impl)
"lib/app/mw_app_game_minesweeper", # FOSS minesweeper mode (app integration)
]
# dev: no LTO, some optimization,
# lots of codegen units for parallelism during compilation
[profile.dev]
opt-level = 1
debug = false
lto = false
codegen-units = 16
incremental = true
# release: Enable LTO and limit codegen units for better codegen
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = false
incremental = false
[features]
dev = [
"mw_app_core/dev",
"mw_app_io/dev",
"mw_app/dev",
"mw_app_gfx2d/dev",
"mw_app_gfx3d/dev",
"mw_ui_desktop/dev",
"mw_ui_mobile/dev",
"mw_platform_windows/dev",
"mw_platform_macos/dev",
"mw_platform_linux/dev",
]
release = [
"mw_app_core/release",
"mw_app_io/release",
"mw_app/release",
"mw_app_gfx2d/release",
"mw_app_gfx3d/release",
"mw_ui_desktop/release",
"mw_ui_mobile/release",
"mw_platform_windows/release",
"mw_platform_macos/release",
"mw_platform_linux/release",
]
[dependencies.mw_engine]
path = "lib/app/mw_engine"
[dependencies.mw_app_core]
path = "lib/app/mw_app_core"
[dependencies.mw_app_io]
path = "lib/app/mw_app_io"
[dependencies.mw_app]
path = "lib/app/mw_app"
[dependencies.mw_app_game_minesweeper]
path = "lib/app/mw_app_game_minesweeper"
[dependencies.mw_app_gfx2d]
path = "lib/app/mw_app_gfx2d"
[dependencies.mw_app_gfx3d]
path = "lib/app/mw_app_gfx3d"
[dependencies.mw_ui_common]
path = "lib/app/mw_ui_common"
[dependencies.mw_ui_desktop]
path = "lib/app/mw_ui_desktop"
[dependencies.mw_ui_mobile]
path = "lib/app/mw_ui_mobile"
[target.'cfg(target_os = "windows")'.dependencies.mw_platform_windows]
path = "lib/app/mw_platform_windows"
[target.'cfg(target_os = "macos")'.dependencies.mw_platform_macos]
path = "lib/app/mw_platform_macos"
[target.'cfg(target_os = "linux")'.dependencies.mw_platform_linux]
path = "lib/app/mw_platform_linux"
[dependencies]
iyes_perf_ui = "0.3.0"
[dependencies.bevy]
version = "0.14.0"
default-features = false