Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
167 lines (160 loc) · 5.64 KB
/
Copy pathCargo.toml
File metadata and controls
167 lines (160 loc) · 5.64 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
[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 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.
"planner/router",
"planner/router-build",
"host/obc-file-source",
"host/obc-fit",
"host/obc-inspect",
"host/obc-fixtures",
"host/obc-pack",
"host/obc-draw",
"host/obc-network",
"host/obc-pbf",
"host/obc-map-core",
"host/obc-places",
"host/obc-search-bake",
"host/obc-bake",
"host/obc-osm",
"host/obc-dem",
"host/obc-mkimage",
"host/obc-vectors",
"host/obc-trailview-features",
"host/obc-ground-plan",
"host/obc-trailview-parts",
"host/obc-tree-walk",
"host/obcm-assemble",
"host/obcm-testkit",
"builder/usb",
"host/obc-data",
"host/obc-data-steps",
# sim/ — the shared host and development shells.
"sim/host-core",
"sim/replay",
"sim/flat-device",
"sim/feeder",
"sim/bench",
"sim/phone/host",
"sim/desktop",
"sim/web-demo",
# Product bridges.
"planner/service",
"builder/wasm",
"builder/ground-plan-wasm",
"builder/trailview-parts-wasm",
]
# 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-sensor-sim carry their own
# [workspace] tables, which excludes them automatically for the same reason.
exclude = ["firmware/obc-fw-nrf54l"]
resolver = "2"
[workspace.dependencies]
obc-crc = { path = "firmware/obc-crc" }
obc-data = { path = "host/obc-data" }
obc-display = { path = "firmware/obc-display" }
obc-elevation = { path = "firmware/obc-elevation" }
obc-fixtures = { path = "host/obc-fixtures" }
obc-flat-device = { path = "sim/flat-device" }
obc-formats = { path = "firmware/obc-formats" }
obc-ground-plan = { path = "host/obc-ground-plan", default-features = false }
obc-trailview-parts = { path = "host/obc-trailview-parts" }
obc-link = { path = "firmware/obc-link" }
obc-map-scene = { path = "firmware/obc-map-scene" }
obc-pack = { path = "host/obc-pack" }
obc-bake = { path = "host/obc-bake" }
obc-draw = { path = "host/obc-draw" }
obc-network = { path = "host/obc-network" }
obc-pbf = { path = "host/obc-pbf" }
obc-map-core = { path = "host/obc-map-core" }
obc-osm = { path = "host/obc-osm" }
obc-ports = { path = "firmware/obc-ports" }
obc-reader = { path = "firmware/obc-reader" }
obc-render = { path = "firmware/obc-render" }
obc-route = { path = "firmware/obc-route" }
obc-storage = { path = "firmware/obc-storage" }
obc-vectors = { path = "host/obc-vectors" }
obcm-testkit = { path = "host/obcm-testkit" }
obc-app = { path = "firmware/obc-app" }
obc-dem = { path = "host/obc-dem", default-features = false }
obc-dfu = { path = "firmware/obc-dfu" }
obc-file-source = { path = "host/obc-file-source" }
obc-fit = { path = "host/obc-fit" }
obc-host-core = { path = "sim/host-core" }
obc-places = { path = "host/obc-places" }
obc-platform = { path = "firmware/obc-platform" }
obc-replay = { path = "sim/replay" }
obc-tree-walk = { path = "host/obc-tree-walk" }
obcm-assemble = { path = "host/obcm-assemble", default-features = false }
planner-router-build = { path = "planner/router-build" }
planner-router = { path = "planner/router" }
embedded-graphics = "0.8"
heapless = "0.9"
libm = { version = "0.2", default-features = false }
miniz_oxide = { version = "0.8.9", default-features = false }
pollster = "0.3"
serde_json = "1"
sha2 = { version = "0.11", default-features = false }
zlib-rs = "0.6.7"
console_error_panic_hook = "0.1"
eframe = "0.29"
flate2 = "1"
getrandom = "0.4"
image = { version = "0.25", default-features = false }
js-sys = "0.3"
osmpbfreader = "0.19"
postcard = { version = "1", default-features = false }
rfd = "0.14"
rusqlite = "0.41"
schemars = "1"
serde = "1"
tempfile = "3"
tokio = "1"
unicode-normalization = "0.1"
ureq = "3"
wasm-bindgen = "0.2"
zip = { version = "9", default-features = false }
# Full debug info is most of each test binary. Line tables keep file and line in backtraces;
# a debugger loses local variables. `[profile.test]` inherits this.
[profile.dev]
debug = "line-tables-only"
# 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
# Tool identities hash large compiler and sysroot files.
[profile.dev.package.sha2]
opt-level = 3
# The ground plan's fixture tests build and mesh every fixture cell.
[profile.dev.package.obc-ground-plan]
opt-level = 3
[profile.dev.package.spade]
opt-level = 2
[profile.dev.package.i_overlay]
opt-level = 2
# One unit optimizes the crate as one module: the viewer's ground-plan WASM bridge is smaller and not
# slower, and its size does not jump when the compiler splits the crate differently.
[profile.release.package.obc-ground-plan]
codegen-units = 1