-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
58 lines (48 loc) · 1.21 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
[package]
name = "{{crate_name}}"
version = "0.1.0"
authors = ["{{authors}}"]
edition = "2018"
readme = "README.md"
[dependencies]
cortex-m = "0.6.2"
cortex-m-rt = "0.6.13"
cortex-m-rtic = "0.6.0-alpha.0"
embedded-hal = "1.0.0-alpha.4"
panic-halt = "0.2.0"
[dependencies.stm32f1xx-hal]
version = "0.7.0"
features = ["stm32f103", "rt"]
[dependencies.rtt-target]
version = "0.3.0"
features = ["cortex-m"]
[dependencies.panic-rtt-target]
version = "0.1.1"
features = ["cortex-m"]
# this lets you use `cargo fix`!
[[bin]]
name = "{{crate_name}}"
test = false
bench = false
[profile.release]
opt-level = 3
debug-assertions = false
overflow-checks = false
panic = 'abort'
incremental = false
rpath = false
lto = true
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash
[profile.dev]
# use the same configuration for dev and release, as linker gives an error if
# binaries are to large, which happens quickly without optimisations.
opt-level = 3
debug-assertions = false
overflow-checks = false
panic = 'abort'
incremental = false
rpath = false
lto = true
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash