-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo_nrf.toml
55 lines (51 loc) · 1.22 KB
/
Cargo_nrf.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
55
[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 = "{{rmk-version}}" }
cortex-m-rt = "0.7.3"
cortex-m = { version = "0.7.7", features = ['critical-section-single-core'] }
embassy-nrf = { version = "0.2", features = [
"{{ nrf_feature }}",
"defmt",
"time-driver-rtc1",
"unstable-pac",
"gpiote",
"time",
"nfc-pins-as-gpio",
] }
embassy-executor = { version = "0.6", features = [
"defmt",
"arch-cortex-m",
"executor-thread",
"integrated-timers",
"task-arena-size-32768",
] }
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"