forked from rust-embedded/cortex-m-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
45 lines (39 loc) · 1.16 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
[package]
authors = ["marmidr"]
edition = "2021"
readme = "README.md"
name = "cm3_examples"
version = "0.1.0"
[dependencies]
cortex-m = "0.7.7"
cortex-m-rt = "0.7.3"
cortex-m-semihosting = "0.5.0"
panic-halt = "0.2.0"
rustversion = "1.0"
atomic_once_cell = "0.1.5"
try-lock = "0.2.4"
alloc-cortex-m = "0.4.4"
# embedded-alloc = "0.5.0"
rtwins = { path = "../../rtwins" }
# rtwins = { git = "https://github.com/marmidr/rtwins.git", branch = "dev"}
# Uncomment for the panic example.
# panic-itm = "0.4.1"
panic-semihosting = { version = "0.6.0", features = ["exit"] }
# Uncomment for the device example.
# Update `memory.x`, set target to `thumbv7em-none-eabihf` in `.cargo/config`,
# and then use `cargo build --examples device` to build it.
# [dependencies.stm32f3]
# features = ["stm32f303", "rt"]
# version = "0.15.1"
[features]
qemu = []
# defaul = ["qemu"]
[profile.dev]
opt-level = 1 # necessary so the tui_full fit in the ROM
debug = true
[profile.release]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash
# strip = "debuginfo"
lto = true # better optimizations
opt-level = 'z' # optimize for size. 59kB -> 39kB