Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
158 lines (136 loc) · 5.69 KB
/
Copy pathCargo.toml
File metadata and controls
158 lines (136 loc) · 5.69 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
cargo-features = ["panic-immediate-abort"]
[package]
name = "scooter-display"
version = "0.1.0"
edition = "2024"
[[bin]]
name = "scooter_display"
path = "src/main.rs"
test = false
[[bin]]
name = "scooter_emulator"
path = "src/bin/emulator/main.rs"
required-features = ["sim"]
[dependencies]
# at32f4xx-hal = { path = "../at32f4xx-hal", features = ["at32f415", "defmt"] }
at32f4xx-hal = { git = "https://github.com/simmsb/at32f4xx-hal", features = ["at32f415", "defmt"], optional = true }
cortex-m-rt = { version = "0.7.6", features = ["set-sp", "set-vtor"], optional = true }
# defmt-rtt = { version = "1.1.0", features = ["disable-blocking-mode"] }
defmt-rtt = { version = "1.3.0", features = [] }
panic-probe = { version = "1.0.0", features = ["defmt", "print-defmt"], optional = true }
defmt = "1.1.1"
cortex-m = { version = "0.7.9", features = ["inline-asm", "linker-plugin-lto", "critical-section-single-core"], optional = true }
mipidsi = "0.10.0"
embedded-graphics = "0.8.2"
embassy-time-driver = { version = "0.2.2" }
embassy-sync = "0.8.0"
embassy-time-queue-utils = "0.3.2"
critical-section = "1.2.0"
fugit = "0.5.0"
embassy-executor = { version = "0.10.0", features = ["defmt", "platform-cortex-m", "executor-thread", "executor-interrupt", "embassy-time-driver", "nightly"] }
static_cell = { version = "2.1.1", features = ["nightly"] }
embassy-time = { version = "0.5.1", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_000"] }
buoyant = { git = "https://github.com/simmsb/buoyant", version = "0.7.0-alpha.3", branch = "simmsb/buoyant-with-diffing" }
heapless = { version = "0.9.3", features = ["defmt", "ufmt"] }
glyphr = { version = "0.5.1", default-features = false, git = "https://github.com/simmsb/glyphr" }
embedded-io-async = { version = "0.7.0", features = ["defmt"] }
embedded-hal-nb = "1.0.0"
crc = "3.4.0"
deku = { version = "0.20.3", default-features = false, features = ["bits"] }
embassy-futures = "0.1.2"
no-std-moving-average = "0.3.0"
panic-reset = { version = "0.1.1", optional = true }
butt-head = { version = "0.2.0", features = ["defmt"] }
strum = { version = "0.28.0", default-features = false, features = ["derive"] }
chrono = { version = "0.4.45", default-features = false, features = ["defmt"] }
once_cell = { version = "1.21.4", default-features = false, features = ["critical-section", "portable-atomic"] }
pin-project-lite = "0.2.17"
embedded-storage-async = "0.4.1"
dummy-pin = "1.0.0"
derive-enum-rotate = { git = "https://github.com/simmsb/derive-enum-rotate", version = "0.1.0" }
embedded-storage = "0.3.1"
sequential-storage = { version = "8.0.1", default-features = false, features = ["defmt", "postcard"] }
paste = "1.0.15"
itertools = { version = "0.15.0", default-features = false }
postcard = { version = "1.1.3", default-features = false, features = ["defmt", "postcard-derive", "experimental-derive"] }
serde = { version = "1.0.229", default-features = false, features = ["derive"] }
ufmt = { version = "0.2.0", default-features = false }
eframe = { version = "0.36", optional = true }
embedded-graphics-simulator = { version = "0.8", optional = true, default-features = false }
material-colors = { git = "https://github.com/Aiving/material-colors", version = "0.5.0", optional = true }
kfilter = "0.5.1"
nalgebra = { version = "=0.34.0", default-features = false, features = ["libm"] }
[features]
test = ["deku/descriptive-errors"]
app = ["dep:cortex-m-rt", "dep:cortex-m", "dep:at32f4xx-hal"]
sim = [
"dep:eframe",
"dep:embedded-graphics-simulator",
"dep:material-colors",
"chrono/clock",
"chrono/std",
"critical-section/std",
]
default = ["app", "panic-probe"]
panic-probe = ["dep:panic-probe"]
prod-build = ["app", "panic-scram"]
# panic handler which sends immobiliser canbus messages and then resets.
panic-scram = []
[patch.crates-io]
embassy-executor = { git = "https://github.com/embassy-rs/embassy" }
embassy-futures = { git = "https://github.com/embassy-rs/embassy" }
embassy-sync = { git = "https://github.com/embassy-rs/embassy" }
embassy-time = { git = "https://github.com/embassy-rs/embassy" }
embassy-time-driver = { git = "https://github.com/embassy-rs/embassy" }
embassy-time-queue-utils = { git = "https://github.com/embassy-rs/embassy" }
embassy-executor-timer-queue = { git = "https://github.com/embassy-rs/embassy" }
#[patch."https://github.com/simmsb/glyphr"]
#glyphr-macros = { path = "../glyphr/glyphr-macros" }
#glyphr = { path = "../glyphr/glyphr" }
# [patch."https://github.com/simmsb/at32f4xx-hal"]
# at32f4xx-hal = { path = "../at32f4xx-hal" }
# [patch."https://github.com/simmsb/at32f4xx-pac"]
# at32f4xx-pac = { path = "../at32f4xx-pac" }
# [patch."https://github.com/simmsb/buoyant"]
# buoyant = { path = "../buoyant" }
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true
incremental = false
lto = 'thin' # true/fat breaks defmt?
opt-level = 's'
overflow-checks = true
# panic = 'unwind'
# panic = 'immediate-abort'
panic = 'abort'
# This is probably just placebo as these libs all work off traits
[profile.release.package."buoyant"]
opt-level = 'z'
[profile.release.package."glyphr"]
opt-level = 'z'
[profile.release.package."deku"]
opt-level = 'z'
[profile.release.package."embedded-graphics"]
opt-level = 'z'
[profile.release.package."mipidsi"]
opt-level = 3
[build-dependencies]
build_script_file_gen = "0.6.1"
material-colors = { git = "https://github.com/Aiving/material-colors", version = "0.5.0" }
[profile.release-host]
inherits = "release"
opt-level = 3
panic = 'unwind'
[profile.release-immediate-abort]
inherits = "release"
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 'z'
overflow-checks = false
panic = 'immediate-abort'
[package.metadata.docs.rs]
cargo-args = ["-Zunstable-options", "--sort-modules-by-appearance"]