@@ -6,25 +6,23 @@ license = "MIT OR Apache-2.0"
6
6
7
7
[dependencies ]
8
8
# Change stm32f429zi to your chip name, if necessary.
9
- embassy-stm32 = { version = " 0.2.0" , path = " ../../embassy-stm32" , features = [" defmt " , " stm32f429zi " , " unstable-pac" , " memory-x" , " time-driver-tim4" , " exti" , " chrono" ] }
10
- embassy-sync = { version = " 0.7.0" , path = " ../../embassy-sync" , features = [" defmt " ] }
11
- embassy-executor = { version = " 0.7.0" , path = " ../../embassy-executor" , features = [" arch-cortex-m" , " executor-thread" , " executor-interrupt" , " defmt " ] }
12
- embassy-time = { version = " 0.4.0" , path = " ../../embassy-time" , features = [" defmt" , " defmt -timestamp-uptime" , " tick-hz-32_768" ] }
13
- embassy-usb = { version = " 0.4.0" , path = " ../../embassy-usb" , features = [" defmt " ] }
14
- embassy-net = { version = " 0.7.0" , path = " ../../embassy-net" , features = [" defmt " , " tcp" , " dhcpv4" , " medium-ethernet" , ] }
9
+ embassy-stm32 = { version = " 0.2.0" , path = " ../../embassy-stm32" , features = [" stm32f401re " , " unstable-pac" , " memory-x" , " time-driver-tim4" , " exti" , " chrono" , " rt " ], default-features = false }
10
+ embassy-sync = { version = " 0.7.0" , path = " ../../embassy-sync" , features = [] }
11
+ embassy-executor = { version = " 0.7.0" , path = " ../../embassy-executor" , features = [" arch-cortex-m" , " executor-thread" , " executor-interrupt" ] }
12
+ embassy-time = { version = " 0.4.0" , path = " ../../embassy-time" , features = [" defmt-timestamp-uptime" , " tick-hz-32_768" ] }
13
+ embassy-usb = { version = " 0.4.0" , path = " ../../embassy-usb" , features = [] }
14
+ embassy-net = { version = " 0.7.0" , path = " ../../embassy-net" , features = [" tcp" , " dhcpv4" , " medium-ethernet" , ] }
15
15
embassy-net-wiznet = { version = " 0.2.0" , path = " ../../embassy-net-wiznet" , features = [" defmt" ] }
16
16
embassy-futures = { version = " 0.1.0" , path = " ../../embassy-futures" }
17
17
18
- defmt = " 1.0.1"
19
- defmt-rtt = " 1.0.0"
18
+ panic-halt = " 1.0"
20
19
21
20
cortex-m = { version = " 0.7.6" , features = [" inline-asm" , " critical-section-single-core" ] }
22
21
cortex-m-rt = " 0.7.0"
23
22
embedded-hal = " 0.2.6"
24
23
embedded-hal-bus = { version = " 0.2" , features = [" async" ] }
25
24
embedded-io = { version = " 0.6.0" }
26
25
embedded-io-async = { version = " 0.6.1" }
27
- panic-probe = { version = " 1.0.0" , features = [" print-defmt" ] }
28
26
futures-util = { version = " 0.3.30" , default-features = false }
29
27
heapless = { version = " 0.8" , default-features = false }
30
28
critical-section = " 1.1"
@@ -36,4 +34,8 @@ static_cell = "2"
36
34
chrono = { version = " ^0.4" , default-features = false }
37
35
38
36
[profile .release ]
39
- debug = 2
37
+ # opt-level = 1 # optimize for size
38
+ opt-level = " s" # optimize for size
39
+ codegen-units = 1 # better optimizations
40
+ debug = true # symbols are nice and they don't increase the size on Flash
41
+ lto = true # better optimizations
0 commit comments