-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
50 lines (43 loc) · 1.44 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
[package]
name = "ht32f5xxxx-hal"
version = "0.1.0"
authors = ["Henrik Böving <[email protected]>"]
edition = "2018"
categories = ["embedded", "hardware-support", "no-std"]
description = "Hardware Abstraction Layer implementation for HT32H5xxxx series microcontrollers"
keywords = ["arm", "cortex-m", "ht32", "hal", "embedded-hal"]
license = "0BSD"
repository = "https://github.com/ht32-rs/ht32f5xxxx-hal"
documentation = "https://docs.rs/ht32f5xxxx-hal"
readme = "README.md"
exclude = [".gitignore"]
[package.metadata.docs.rs]
features = ["ht32f52342_52", "rt"]
targets = ["thumbv6m-none-eabi"]
[dependencies]
embedded-hal = "0.2.4"
cortex-m = "0.6.3"
cortex-m-rt = "0.6.12"
nb = "0.1.2"
ht32f5xxxx = "0.1.1"
[dependencies.bare-metal]
version = "0.2.5"
features = ["const-fn"]
[dev-dependencies]
panic-rtt-target = { version = "0.1.0", features = ["cortex-m"] }
rtt-target = { version = "0.2.0", features = ["cortex-m"] }
[features]
default = ["unproven"]
unproven = ["embedded-hal/unproven"]
device-selected = []
rt = ["ht32f5xxxx/rt"]
ht32f52342_52 = ["ht32f5xxxx/ht32f52342_52", "device-selected"]
[profile.dev]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size in flash
incremental = false
[profile.release]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size in flash
lto = true # better optimizations
opt-level = "s" # optimize for binary size