-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
257 lines (225 loc) · 6.83 KB
/
Copy pathCargo.toml
File metadata and controls
257 lines (225 loc) · 6.83 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# LabWired - Firmware Simulation Platform
# Copyright (C) 2026 Andrii Shylenko
#
# This software is released under the MIT License.
# See the LICENSE file in the project root for full license information.
[workspace]
resolver = "2"
members = [
"crates/cli",
"crates/codegen",
"crates/config",
"crates/core",
"crates/dap",
"crates/egress-relay",
"crates/firmware",
"crates/firmware-ci-fixture",
"crates/firmware-comparative-benchmark",
"crates/firmware-esp32c3-demo",
"crates/firmware-f103-i2c-demo",
"crates/firmware-f401-demo",
"crates/firmware-f103-conformance",
"crates/firmware-f103-fuzztarget",
"crates/labwired-fuzz",
"crates/firmware-f401cdu6-blackpill-demo",
"crates/firmware-f407-demo",
"crates/firmware-h563-demo",
"crates/firmware-h563-fullchip-demo",
"crates/firmware-h563-io-demo",
"crates/firmware-hil-showcase",
"crates/firmware-l073-demo",
"crates/firmware-l476-demo",
"crates/firmware-nrf52840-ble-collector",
"crates/firmware-nrf52840-ble-rx",
"crates/firmware-nrf52840-ble-sensor",
"crates/firmware-nrf52840-ble-tx",
"crates/firmware-nrf52840-conformance",
"crates/firmware-nrf52840-cpu-conformance",
"crates/firmware-nrf52840-demo",
"crates/firmware-nrf52840-isr-blinky",
"crates/firmware-nrf52840-proximity",
"crates/firmware-nrf52840-timer-blinky",
"crates/firmware-rp2040-demo",
"crates/firmware-kw41z-demo",
"crates/firmware-kw41z-lcd",
"crates/firmware-rp2040-pio-onboarding",
"crates/gdbstub",
"crates/hw-oracle",
"crates/hw-oracle-macros",
"crates/hw-runner",
"crates/hw-trace",
"crates/ir",
"crates/loader",
"crates/validation-report",
"crates/python",
"crates/riscv-ci-fixture",
"crates/svd-ingestor",
"crates/wasm",
"examples/demo-blinky",
"examples/nucleo-f407-i2c",
"examples/riscv-virt",
"examples/adxl345-sensor-lab",
"examples/mpu6050-sensor-lab",
"examples/vl53l1x-tof-lab",
"examples/bme280-weather-lab",
"examples/max31855-thermocouple-lab",
"examples/ssd1306-hello-lab",
"examples/neo6m-gps-lab",
"examples/quectel-bg770a-lab",
"examples/ntc-thermistor-lab",
"examples/ili9341-tft-lab",
"examples/epaper-tricolor-lab",
"examples/nokia5110-invaders-lab",
"examples/tier1-fixture/nrf52832",
"examples/tier1-fixture/nrf52840",
"examples/tier1-fixture/rp2040",
]
# firmware-hal-test is a standalone reference example pinned to stm32f1xx-hal.
# It carries its own [profile.release] (opt-level = "z", lto = true) that is
# incompatible with the workspace profile, so it must build out-of-workspace.
#
# examples/esp32s3-* and examples/esp32c3-* require the +esp toolchain and live
# entirely outside the standard workspace toolchain.
exclude = [
"crates/firmware-hal-test",
"examples/esp32s3-blinky",
"examples/esp32s3-hello-world",
"examples/esp32s3-i2c-tmp102",
"examples/openai-deck-s3",
"examples/esp32c3-hello-world",
"examples/esp32-epaper-lab",
"examples/tier1-fixture/esp32s3",
"examples/tier1-fixture/esp32",
]
default-members = ["crates/cli", "crates/core", "crates/dap", "crates/loader", "crates/labwired-fuzz"]
[workspace.package]
version = "0.19.2"
edition = "2021"
authors = ["Andrii Shylenko"]
license = "MIT"
[workspace.dependencies]
anyhow = "1.0"
thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
clap = { version = "4.4", features = ["derive"] }
goblin = "0.7"
libc = "0.2"
serialport = "4.9"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
bitflags = "2.4"
human-size = "0.4"
serde_json = "1.0"
sha2 = "0.10"
cortex-m = "0.7"
cortex-m-rt = "0.7"
panic-halt = "0.2"
memmap2 = "0.9"
pio = "0.2"
pio-parser = "0.2"
ureq = { version = "2.12", features = ["json"] }
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
lto = "thin"
debug = true
# Per-package release overrides for embedded firmware crates and CI fixtures.
# These build for thumbv*/riscv32 targets and want size-optimized binaries
# (opt-level = "s") with single-codegen-unit for cleaner inlining. Cargo does
# not support globs or inheritance in profile sections, so each crate gets
# its own block. Keep alphabetical.
[profile.release.package.firmware-ci-fixture]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-esp32c3-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-f401-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-f103-conformance]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-f103-fuzztarget]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-h563-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-h563-fullchip-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-h563-io-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-hil-showcase]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-l476-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-nrf52840-conformance]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-nrf52840-cpu-conformance]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-nrf52840-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-rp2040-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-kw41z-demo]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-kw41z-lcd]
codegen-units = 1
opt-level = "s"
[profile.release.package.firmware-rp2040-pio-onboarding]
codegen-units = 1
opt-level = "s"
[profile.release.package.riscv-ci-fixture]
codegen-units = 1
opt-level = "s"
[profile.release.package.adxl345-sensor-lab]
codegen-units = 1
debug = true
opt-level = "s"
[profile.release.package.mpu6050-sensor-lab]
codegen-units = 1
debug = true
opt-level = "s"
[profile.release.package.bme280-weather-lab]
codegen-units = 1
debug = true
opt-level = "s"
[profile.release.package.max31855-thermocouple-lab]
codegen-units = 1
debug = true
opt-level = "s"
[profile.release.package.ssd1306-hello-lab]
codegen-units = 1
debug = true
opt-level = "s"
[profile.release.package.neo6m-gps-lab]
codegen-units = 1
debug = true
opt-level = "s"
[profile.release.package.quectel-bg770a-lab]
codegen-units = 1
debug = true
opt-level = "s"
[profile.release.package.ntc-thermistor-lab]
codegen-units = 1
debug = true
opt-level = "s"
# The browser simulator cdylib (NOT a firmware crate). A single codegen unit
# lets LLVM inline across the whole crate for the wasm hot loop; the compile-time
# cost lands only on this one package. opt-level stays at the release default (3).
# SIMD/bulk-memory target features and the debug-strip live in .cargo/config.toml
# and crates/wasm/Cargo.toml's wasm-pack metadata respectively.
[profile.release.package.labwired-wasm]
codegen-units = 1