-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
86 lines (74 loc) · 1.89 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
[package]
edition = "2018"
name = "blue_hal"
version = "1.0.0"
description = "Embedded Hardware Abstraction Layer"
repository = "https://github.com/absw/blue_hal"
readme = "README.md"
keywords = ["embedded", "hal", "cortex", "bare_metal"]
categories = ["embedded", "no-std"]
license = "MIT"
# The features below reflect the hierarchy of stm32 families.
# Choosing a f4 family implies f4, which implies stm32, which
# implies cortex M...
[features]
default = [
"defmt-default",
]
stm32f429 = ["stm32f4/stm32f429", "stm32f4_any"]
stm32f446 = ["stm32f4/stm32f446", "stm32f4_any"]
stm32f469 = ["stm32f4/stm32f469", "stm32f4_any"]
stm32f407 = ["stm32f4/stm32f407", "stm32f4_any"]
stm32f412 = ["stm32f4/stm32f412", "stm32f4_any"]
stm32f4_any = ["stm32_any"]
stm32_any = ["cortex_m_any"]
cortex_m_any = []
wgm160p = ["efm32gg11b_any"]
efm32gg11b_any = ["efm32gg11b", "cortex_m_any"]
defmt-default = []
defmt-trace = []
defmt-debug = []
defmt-info = []
defmt-warn = []
defmt-error = []
[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = "0.6.7"
cortex-m-semihosting = "0.3.7"
nb = "1.0.0"
paste = "1.0.4"
static_assertions = "1.1.0"
defmt = "0.2"
defmt-rtt = "0.2"
marker-blanket = "0.1"
bytemuck = "1.5.1"
[dependencies.nom]
version = "6.0.1"
default-features = false
[dependencies.ufmt]
version = "0.1.0"
default-features = false
[dependencies.crc]
version = "1.8.1"
default-features = false
[dependencies.stm32f4]
optional = true
version = "0.12.1"
features = ["rt"]
[dependencies.efm32gg11b]
optional = true
version = "0.1.0"
features = ["rt"]
[lib]
name = "blue_hal"
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