-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
65 lines (63 loc) · 2.48 KB
/
Copy pathCargo.toml
File metadata and controls
65 lines (63 loc) · 2.48 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
[workspace]
# The host workspace root. It lives at the repo root rather than under firmware/ because its
# members no longer all belong to the firmware: the device-reachable crates stay in firmware/,
# the host tools and test oracles live in host/, and the four shells that drive them live in
# apps/. One root keeps a single Cargo.lock and a single target/ across all three.
members = [
# firmware/ — reachable from the device image through normal dependencies.
"firmware/obc-formats",
"firmware/obc-ports",
"firmware/obc-map-scene",
"firmware/obc-reader",
"firmware/obc-elevation",
"firmware/obc-route",
"firmware/obc-render",
"firmware/obc-app",
"firmware/obc-platform",
"firmware/obc-display",
"firmware/obc-sensors",
"firmware/obc-storage",
"firmware/obc-ble",
"firmware/obc-dfu",
"firmware/obc-crc",
"firmware/obc-link",
# host/ — tools, shared host glue, and the test oracles. Never on the device.
"host/obc-host-core",
"host/obc-flat-device",
"host/obc-fixtures",
"host/obc-pack",
"host/obc-bake",
"host/obc-dem",
"host/obc-mkimage",
"host/obc-bench",
"host/obc-vectors",
"host/obc-tree-walk",
"host/obcm-assemble",
"host/obcm-testkit",
"host/obc-replay",
"host/obc-usb-host",
"host/obc-usb",
# apps/ — the shells. obc-desktop is here too, but carries its own [workspace].
"apps/obc-ios-host",
"apps/obc-sim",
"apps/obc-web-demo",
"apps/obc-web-convert",
"apps/obc-web-assemble",
"apps/obc-skin-preview",
]
# obc-fw-nrf54l is a standalone board crate (own target + .cargo/config.toml, own empty
# [workspace]); it's built on its own, not as part of this host workspace (which builds its
# members for the host target). obc-boot and obc-desktop carry their own [workspace] tables,
# which excludes them automatically for the same reason.
exclude = ["firmware/obc-fw-nrf54l"]
resolver = "2"
# The embedded-sdmmc fork the device build runs (see firmware/obc-fw-nrf54l/Cargo.toml for what it
# changes and why). Repeated here because `[patch.crates-io]` applies per resolve root: without it
# `obc-storage`'s host tests would exercise stock 0.9 while the board runs the fork.
[patch.crates-io]
embedded-sdmmc = { git = "https://github.com/timohueser/embedded-sdmmc-rs", branch = "cmd25-multiblock-write" }
# Optimize CRC and storage crash-matrix loops in development and tests.
[profile.dev.package.obc-crc]
opt-level = 2
[profile.dev.package.obc-storage]
opt-level = 2