-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo_stm32.toml
54 lines (50 loc) · 1.3 KB
/
Cargo_stm32.toml
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
[package]
resolver = "2"
name = "{{project-name}}"
version = "0.0.1"
description = "Keyboard firmware written in Rust"
homepage = ""
repository = ""
readme = ""
edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
rmk = { version = "0.5" }
cortex-m-rt = "0.7.3"
cortex-m = { version = "0.7.7", features = ['critical-section-single-core'] }
embassy-stm32 = { version = "0.1.0", features = [
"{{ chip }}",
"defmt",
"time-driver-any",
"memory-x",
"time",
] }
embassy-time = { version = "0.3", features = ["tick-hz-32_768", "defmt"] }
embassy-executor = { version = "0.6", features = [
"defmt",
"arch-cortex-m",
"task-arena-size-32768", # Change the size to 16384 if your stm32 doesn't have enough RAM
"executor-thread",
"integrated-timers",
] }
static_cell = { version = "2" }
defmt = "0.3"
defmt-rtt = "0.4"
panic-probe = { version = "0.3", features = ["print-defmt"] }
[build-dependencies]
xz2 = "0.1.7"
json = "0.12"
const-gen = "1.6"
[profile.dev]
codegen-units = 1 # better optimizations
debug = true
opt-level = 1
overflow-checks = true
lto = false
panic = 'unwind'
[profile.release]
codegen-units = 1 # better optimizations
debug = true # no overhead for bare-metal
opt-level = "z" # optimize for binary size
overflow-checks = false
lto = "fat"