-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbacon.toml
More file actions
145 lines (132 loc) · 3.26 KB
/
bacon.toml
File metadata and controls
145 lines (132 loc) · 3.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
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
# Bacon configuration for Carcinisation
# bacon is used instead of cargo-watch for faster, more reliable file watching
# See: https://dystroy.org/bacon/
# Default job (runs when you just type `bacon`)
default_job = "check"
[jobs.check]
command = [
"cargo", "check",
"--workspace",
"--all-targets",
"--all-features",
]
need_stdout = false
[jobs.clippy]
command = [
"cargo", "clippy",
"--workspace",
"--all-targets",
"--all-features",
]
need_stdout = false
[jobs.test]
command = [
"cargo", "test",
"--workspace",
"--all-features",
]
need_stdout = true
[jobs.test-all]
command = [
"cargo", "test",
"--workspace",
"--all-features",
"--",
"--include-ignored",
]
need_stdout = true
# Run the game using cargo
# This matches the Makefile's run target behavior
[jobs.run]
command = [
"cargo", "run",
"--bin", "carcinisation",
"--package", "carcinisation",
"--features", "brp",
]
need_stdout = true
allow_warnings = true
env.RUST_BACKTRACE = "full"
# Watch game source and assets only (like make dev)
watch = ["apps/carcinisation/src", "assets", ".env"]
# Don't restart on file changes - let the process crash and restart clean
on_change_strategy = "kill_then_restart"
[jobs.single-stage]
command = [
"cargo", "run",
"--bin", "single_stage",
"--package", "carcinisation",
"--features", "bevy/dynamic_linking",
"--",
"--stage-config", "apps/carcinisation/single-stage.config.ron",
]
need_stdout = true
allow_warnings = true
env.RUST_BACKTRACE = "full"
watch = ["apps/carcinisation/src", "assets", "apps/carcinisation/single-stage.config.ron"]
on_change_strategy = "kill_then_restart"
[jobs.lab]
command = [
"cargo", "run",
"--bin", "single_stage",
"--package", "carcinisation",
"--features", "bevy/dynamic_linking",
"--",
"--stage-config", "apps/carcinisation/lab.config.ron",
]
need_stdout = true
allow_warnings = true
env.RUST_BACKTRACE = "full"
watch = ["apps/carcinisation/src", "assets", "apps/carcinisation/lab.config.ron"]
on_change_strategy = "kill_then_restart"
[jobs.gallery]
command = [
"cargo", "run",
"--bin", "single_stage",
"--package", "carcinisation",
"--features", "bevy/dynamic_linking,brp",
"--",
"--stage-config", "apps/carcinisation/gallery.config.ron",
]
need_stdout = true
allow_warnings = true
env.RUST_BACKTRACE = "full"
watch = ["apps/carcinisation/src", "assets", "apps/carcinisation/gallery.config.ron"]
on_change_strategy = "kill_then_restart"
# Build the debug binary
[jobs.build]
command = [
"cargo", "build",
"--bin", "carcinisation",
"--package", "carcinisation",
]
need_stdout = false
# Build release
[jobs.build-release]
command = [
"cargo", "build",
"--workspace",
"--release",
]
need_stdout = false
# Watch scene files for RON parsing errors
# This is useful when editing assets
[jobs.watch-scenes]
command = [
"cargo", "run",
"--package", "scene-file-watcher",
]
need_stdout = true
allow_warnings = true
env.RUST_BACKTRACE = "full"
watch = ["assets"]
# Run all workspace lints (using bevy CLI pattern)
# Note: This actually uses cargo clippy since bacon doesn't know about bevy CLI
[jobs.lint]
command = [
"cargo", "clippy",
"--workspace",
"--all-targets",
"--all-features",
]
need_stdout = false