forked from korken89/oxidize2020-rtic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
55 lines (49 loc) · 1.32 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 = "app"
categories = ["embedded", "no-std"]
authors = ["Emil Fresk <[email protected]>"]
description = "Oxidize 2020 - RTIC Talk"
keywords = ["arm", "cortex-m", "bootloader"]
version = "0.1.0"
edition = "2018"
[dependencies]
panic-halt = "0.2"
cortex-m-rtic = "0.5" # The only depencency needed for RTIC
cortex-m = "0.6.2"
cortex-m-rt = "0.6.12"
embedded-hal = "0.2.4"
nrf52840-hal = "0.11.0"
log = "0.4.11"
rtt-target = { version = "0.2.0", features = ["cortex-m"] }
# this lets you use `cargo fix`!
[[bin]]
name = "app"
test = false
bench = false
[profile.dev]
opt-level = 1
codegen-units = 16
debug = true
lto = false
[profile.release]
opt-level = "s" # optimize for size
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations
# `syn` and other proc-macro crates take very long to build when optimized
# this disables optimizations for them reducing the time it takes to build the
# whole dependency graph by ~80%
[profile.dev.build-override]
codegen-units = 16
debug = false
debug-assertions = false
incremental = true
opt-level = 0
overflow-checks = false
[profile.release.build-override]
codegen-units = 16
debug = false
debug-assertions = false
incremental = true
opt-level = 0
overflow-checks = false