-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
65 lines (52 loc) · 1.68 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
[package]
name = "musb"
version = "0.2.0"
edition = "2021"
authors = ["Decaday <[email protected]>"]
repository = "https://github.com/decaday/musb"
documentation = "https://docs.rs/musb"
homepage = "https://github.com/decaday/musb"
categories = ["embedded", "no-std", "hardware-support"]
description = "musb(Mentor USB) regs and `embassy-usb-driver`, `usb-device` impl"
keywords = ["usb", "hal", "embedded", "no-std", "hardware-support"]
readme = "README.md"
license = "Apache-2.0"
[dependencies]
embassy-usb-driver = { version = "0.1.0" }
embassy-sync = { version = "0.6.1", optional = true }
usb-device = { version = "0.3.2", optional = true }
cfg-if = {version = "1.0.0", features = ["core"]}
defmt = { version = "0.3", optional = true }
[build-dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
cfg-if = {version = "1.0.0"}
[features]
default = ["prebuild"]
embassy-usb-driver-impl = ["embassy-sync"]
usb-device-impl = ["usb-device"]
defmt = ["embassy-usb-driver/defmt",
"embassy-sync/defmt",
"usb-device/defmt",
"dep:defmt",
]
log = ["embassy-sync/log", "usb-device/log"]
builtin-py32f07x = []
builtin-py32f403 = []
builtin-std = []
prebuild = []
endpoints-num-2 = []
endpoints-num-4 = []
endpoints-num-6 = []
endpoints-num-8 = []
endpoints-num-12 = []
endpoints-num-16 = []
# Interal features, auto-generated by build.rs according to profile
_ep-shared-fifo = []
_equal-fifo-size = []
_fixed-fifo-size = []
# Generate a `UsbInstance` when you set `base_address` in profile
_gen-usb-instance = []
[package.metadata.docs.rs]
features = ["defmt", "builtin-py32f07x", "endpoints-num-16", "embassy-usb-driver-impl"]
targets = ["thumbv7em-none-eabihf"]