-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
115 lines (99 loc) · 2.65 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[package]
edition = "2018"
name = "loadstone"
version = "1.0.0"
default-run = "loadstone"
license = "MIT"
description = "Portable secure bootloader for Cortex-M MCUs"
repository = "https://github.com/absw/loadstone"
readme = "README.md"
keywords = ["embedded", "bootloader", "cortex", "secure", "bare_metal"]
categories = ["embedded", "no-std"]
exclude = ["docker/*", "docs/*", "documentation/*", "svd/*"]
[features]
default = [
"defmt-default",
]
# The features below reflect the hierarchy of stm32 families.
# Choosing a f4 family implies f4, which implies stm32, which
# implies cortex M...
stm32f429 = ["blue_hal/stm32f429", "stm32f4_any"]
stm32f469 = ["blue_hal/stm32f469", "stm32f4_any"]
stm32f407 = ["blue_hal/stm32f407", "stm32f4_any"]
stm32f412 = ["blue_hal/stm32f412", "stm32f4_any"]
stm32f4_any = ["blue_hal/stm32_any", "stm32_any"]
stm32_any = ["cortex_m_any"]
cortex_m_any = []
wgm160p = ["blue_hal/wgm160p", "efm32gg11b_any"]
efm32gg11b_any = ["cortex_m_any"]
defmt-default = []
defmt-trace = []
defmt-debug = []
defmt-info = []
defmt-warn = []
defmt-error = []
ecdsa-verify = ["ecdsa", "p256"]
# Bases the binary address space on the first bootable
# bank rather than the first valid Flash address of the
# target board. This is mainly useful for the demo app,
# which is generally booted by loadstone.
relocate-to-bootable-bank = []
[dependencies]
cortex-m = "0.6.0"
cortex-m-rt = "0.6.10"
cortex-m-semihosting = "0.3.3"
nb = "0.1.*"
panic-semihosting = "0.5.*"
static_assertions = "1.1.*"
defmt = "0.2"
defmt-rtt = "0.2"
alloc-cortex-m = "0.4.*"
marker-blanket = "0.1.*"
[dependencies.funty]
version = "=1.1.0"
default-features = false
[dependencies.crc]
version = "1.8.1"
default-features = false
[dependencies.ecdsa]
version = "0.11"
default-features = false
features = ["pem"]
optional = true
[dependencies.sha2]
version = "0.9.5"
default-features = false
[dependencies.p256]
version = "0.8.*"
default-features = false
features = ["ecdsa", "sha256", "pem"]
optional = true
[dependencies.blue_hal]
version = "1.0.0"
[dependencies.ufmt]
version = "0.1.*"
default-features = false
[lib]
name = "loadstone_lib"
test = true
bench = false
[[bin]]
name = "loadstone"
test = true
bench = false
[profile.release]
opt-level = "z"
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations
[profile.dev]
opt-level = 1 # Some optimization not to tank the binary size
codegen-units = 1 # better optimizations
lto = true # better optimizations
[build-dependencies]
anyhow = "1.0.*"
ron = "0.6.*"
serde = "1.0.*"
[build-dependencies.loadstone_config]
path = "loadstone_config"
version = "1.0.0"