-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
88 lines (74 loc) · 1.98 KB
/
Copy pathCargo.toml
File metadata and controls
88 lines (74 loc) · 1.98 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
[package]
authors = ["William Hart <hart.wl@gmail.com>"]
name = "switchy"
edition = { workspace = true }
version = { workspace = true }
[workspace]
members = ["commander", "testsuite", "shift_register_hal"]
[workspace.package]
version = "0.1.0"
edition = "2021"
[[bin]]
name="commander"
path = "./commander"
[features]
default = ["board_rev_1_or_2"]
# joysticks are off because they currently spam and aren't used in keyboard mode
dev_board = ["blink", "buttons", "encoders", "logging"]
board_rev_1_or_2 = ["logging", "buttons", "encoders"] # "joysticks"
board_rev_3 = ["blink", "buttons", "encoders", "logging"] # "joysticks"
blink = []
buttons = []
encoders = []
joysticks = []
logging = ["shift_register_hal/logging"]
[dependencies]
defmt = "0.3.2"
defmt-rtt = "0.4.0"
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
cortex-m-rtic = "1.1.4"
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
stm32f4xx-hal = { version = "0.14.0", features = ["stm32f401", "defmt", "rtic", "usb_fs" ] }
heapless = "0.7.16"
rotary-encoder-hal = { version = "0.5.0" }
switch-hal = "0.4.0"
usb-device = { version = "0.2.9", features = ["defmt"] }
usbd-hid = "0.6.1"
shift_register_hal = { path = "./shift_register_hal", default-features = false }
[dependencies.serde]
version="1.0.154"
default-features=false
# cargo build/run
[profile.dev]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = "s" # <-
overflow-checks = true # <-
# cargo test
[profile.test]
codegen-units = 1
debug = 2
debug-assertions = true # <-
incremental = false
opt-level = "s" # <-
overflow-checks = true # <-
# cargo build/run --release
[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = "s" # <-
overflow-checks = false # <-
# cargo test --release
[profile.bench]
codegen-units = 1
debug = 2
debug-assertions = false # <-
incremental = false
lto = 'fat'
opt-level = "s" # <-
overflow-checks = false # <-