-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathCargo.toml
63 lines (56 loc) · 2.09 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
[package]
authors = ["Matthew Meyer <mtthw.meyer@gmail.com>"]
edition = "2018"
description = "Hardware Abstraction Layer implementation for Daisy boards"
keywords = ["cortex-m", "stm32h7xx", "stm32h750", "hal", "daisy"]
readme = "README.md"
name = "libdaisy"
version = "0.1.0"
license = "MIT"
repository = "https://github.com/mtthw-meyer/libdaisy-rust.git"
documentation = "https://docs.rs/libdaisy"
exclude = [".gitignore"]
[dependencies]
cfg-if = "1.0"
cortex-m-rtic = "1.0.0"
cortex-m = "^0.7"
debouncr = "0.2.2"
log = "0.4.11"
micromath = "2.1.0"
panic-halt = "0.2.0"
stm32h7xx-hal = { version = "0.16.0", features = ["stm32h750v","rt","fmc", "xspi", "sdmmc", "sdmmc-fatfs", "usb_hs"] }
stm32-fmc = "0.3.0"
rtt-target = { version = "0.5.0", optional = true }
panic-rtt-target = { version = "0.1.3", optional = true }
lazy_static = { version = "1.4.0", features = ["spin_no_std"], optional = true }
cortex-m-log = { version = "~0.8", features = ["itm", "semihosting", "log-integration"], optional = true }
panic-itm = { version = "~0.4.2", optional = true }
panic-semihosting = { version = "0.6.0", optional = true }
cortex-m-semihosting = { version = "0.5.0", optional = true }
stable_deref_trait = { version = "1.2.0", default-features = false }
[features]
default = []
log-rtt = ["rtt-target", "panic-rtt-target"]
log-itm = ["panic-itm", "lazy_static", "cortex-m-log"]
log-semihosting = ["panic-semihosting", "lazy_static", "cortex-m-log", "cortex-m-semihosting"]
log-none = []
# this lets you use `cargo fix`!
#[[bin]]
#name = "libdaisy-rust"
#test = false
#bench = false
[profile.dev]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size in flash
incremental = false
opt-level = "s" # optimize for binary size
[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
[dev-dependencies]
embedded-sdmmc = "0.5.0"
usbd-midi = "0.3.0"
num_enum = { version = "0.7.3", default-features = false }
usb-device = "0.3.0"