forked from mtthw-meyer/libdaisy-rust
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
63 lines (56 loc) · 2.07 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 <[email protected]>"]
edition = "2021"
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"
cortex-m = "0.7"
cortex-m-log = { version = "0.8", features = ["itm", "semihosting", "log-integration"], optional = true }
cortex-m-rtic = "1"
cortex-m-semihosting = { version = "0.5", optional = true }
debouncr = "0.2.2"
lazy_static = { version = "1.4.0", features = ["spin_no_std"], optional = true }
log = "0.4"
micromath = "2"
panic-halt = "0.2.0"
panic-itm = { version = "0.4", optional = true }
panic-rtt-target = { version = "0.1.2", features = ["cortex-m"], optional = true }
panic-semihosting = { version = "0.6", optional = true }
rtt-target = { version = "0.4.0", optional = true }
stm32-fmc = "0.3.0"
stm32h7xx-hal = { version = "0.14.0", features = ["stm32h750v","rt","fmc", "xspi", "sdmmc", "sdmmc-fatfs", "usb_hs"] }
[features]
default = []
log-itm = ["panic-itm", "lazy_static", "cortex-m-log"]
log-none = []
log-rtt = ["rtt-target", "panic-rtt-target"]
log-semihosting = ["panic-semihosting", "lazy_static", "cortex-m-log", "cortex-m-semihosting"]
# 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.4"
libm = "0.2"
num_enum = { version = "0.5", default-features = false }
usb-device = "0.2"
usbd-midi = { git = "https://github.com/btrepp/usbd-midi/" }