-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCargo.toml
93 lines (74 loc) · 2.42 KB
/
Cargo.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
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
[package]
authors = ["Nicolas Viennot <nicolas@viennot.biz>"]
edition = "2021"
readme = "README.md"
name = "app"
version = "0.1.0"
[dependencies]
log = { version = "0.4", features = ["max_level_debug", "release_max_level_off"] }
futures = { version = "0.3", default-features = false }
embedded-hal = "0.2.3"
cortex-m = { version = "0.7", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7"
rtt-target = { version = "0.3", features = ["cortex-m"]}
embassy-util = { path = "embassy/embassy-util", features = ["log"] }
embassy-executor = { path = "embassy/embassy-executor", features = ["log", "integrated-timers"] }
embassy-time = { path = "embassy/embassy-time", features = ["log", "tick-4000hz"] }
embassy-stm32 = { path = "embassy/embassy-stm32", features = ["log", "nightly", "unstable-pac", "exti"] }
# The gd32f3 crate is only to configure the clock at 120Mhz
gd32f3 = { git = "https://github.com/nviennot/gd32f3-rs.git", optional=true }
spi-memory = "0.2" # For the external flash access. Will be useful when we do firmware updates
embedded-graphics = "0.7"
embedded-graphics-core = "0.3"
lvgl = { git = "https://github.com/nviennot/lvgl-rs.git", features =["logger", "lvgl_alloc"] }
bitflags = "1.3"
num = { version = "0.4", default-features = false }
heapless = "0.7"
# This is for FAT32
embedded-sdmmc = { git = "https://github.com/nviennot/embedded-sdmmc-rs.git" }
[features]
# MCUs
stm32f1 = []
stm32f4 = []
gd32f307ve = [
"stm32f1",
"gd32f3/gd32f307",
"embassy-stm32/skip_clock_init",
"embassy-stm32/gd32f307ve",
"embassy-stm32/time-driver-tim3",
]
stm32f407ze = [
"stm32f4",
"embassy-stm32/stm32f407ze",
"embassy-stm32/time-driver-tim3",
]
# Printers
# Elegoo Saturn
saturn = ["stm32f407ze"]
# Chitu L V3
lv3 = ["stm32f407ze"]
# Anycubic Mono 4K
mono4k = ["gd32f307ve"]
default = []
# this lets you use `cargo fix`!
[[bin]]
name = "app"
test = false
bench = false
[profile.dev]
opt-level = 'z'
[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 'z'
overflow-checks = false
# uncomment for dev on these:
#[patch."https://github.com/nviennot/embedded-sdmmc-rs.git"]
#embedded-sdmmc = { path = "repos/embedded-sdmmc-rs" }
#[patch."https://github.com/nviennot/stm32f1xx-hal.git"]
#stm32f1xx-hal = { path = "repos/stm32f1xx-hal" }
#[patch."https://github.com/nviennot/lvgl-rs.git"]
#lvgl = { path = "repos/lvgl-rs/lvgl" }