-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (64 loc) · 1.9 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (64 loc) · 1.9 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
[package]
# TODO(1) fix `authors` and `name` if you didn't use `cargo-generate`
authors = ["Adam Ragac <drumer.ragi420@gmail.com>"]
name = "fade"
edition = "2021"
version = "0.1.0"
# To run all the tests via `cargo test` the tests need to be explicitly disabled for the binary targets
# If you use a standard main.rs file the following is sufficient:
[[bin]]
name = "main"
path = "src/main.rs"
test = false
doctest = false
bench = false
[lib]
name = "fade"
test = false
harness = false
doctest = false
[features]
default = ["stm32f"]
stm32f = ["embassy-stm32/stm32f722ic"]
stm32h7 = ["embassy-stm32/stm32h743ag"]
[dependencies]
cortex-m = { version = "0.7", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7"
defmt = "1.0"
defmt-rtt = "1.0"
embassy-executor = { version = "0.9.1", features = ["arch-cortex-m", "executor-thread"] }
embassy-stm32 = { version = "0.4.0", features = ["defmt", "time-driver-any", "exti", "memory-x", "unstable-pac"] }
embassy-embedded-hal = "0.5.0"
static_cell = "2.1.0"
embassy-sync = "0.7.2"
embassy-time = "0.5.0"
embassy-usb = "0.5.1"
embedded-hal-async = "1.0.0"
heapless = "0.7"
icm426xx = { version = "0.4.0", features = ["async"] }
micromath = "2.1.0"
panic-probe = { version = "1.0", features = ["print-defmt"] }
semihosting = "0.1.20"
crsf = "2.0.1"
embassy-futures = "0.1.2"
[dev-dependencies]
defmt-test = "0.3"
# cargo build/run
[profile.dev]
# default is opt-level = '0', but that makes very
# verbose machine code
opt-level = 's'
# trade compile speed for slightly better optimisations
codegen-units = 1
# cargo build/run --release
[profile.release]
# default is opt-level = '3', but that makes quite
# verbose machine code
opt-level = 's'
# trade compile speed for slightly better optimisations
codegen-units = 1
# Use Link Time Optimisations to further inline things across
# crates
lto = 'fat'
# Leave the debug symbols in (default is no debug info)
debug = 2