xous-core/services/usb-device-xous/Cargo.toml
2026-01-29 19:12:00 +08:00

76 lines
2.8 KiB
TOML

[package]
name = "usb-device-xous"
version = "0.1.0"
authors = ["bunnie <bunnie@kosagi.com>"]
edition = "2018"
description = "Xous USB device drivers"
# Dependency versions enforced by Cargo.lock.
[dependencies]
xous = "0.9.70"
xous-ipc = "0.10.10"
log-server = { package = "xous-api-log", version = "0.1.69" }
ticktimer-server = { package = "xous-api-ticktimer", version = "0.9.70" }
xous-names = { package = "xous-api-names", version = "0.9.71" }
log = "0.4.14"
llio = { path = "../llio" }
num-derive = { version = "0.4.2", default-features = false }
num-traits = { version = "0.2.14", default-features = false }
rkyv = { version = "0.8.8", default-features = false, features = [
"std",
"alloc",
] }
susres = { path = "../../api/xous-api-susres", package = "xous-api-susres" }
modals = { path = "../modals", optional = true }
keyboard = { path = "../keyboard", features = ["inject-api"], optional = true }
bitfield = "0.13.2"
vcell = "0.1.3"
xous-semver = "0.1.5"
utralib = { version = "0.1.27", optional = true, default-features = false }
trng = { path = "../trng", optional = true }
precursor-hal = { path = "../../libs/precursor-hal" }
xous-usb-hid = { git = "https://github.com/betrusted-io/xous-usb-hid.git", branch = "main" }
embedded-time = "0.12.1" # required by the keyboard interface
packed_struct = { version = "0.10", default-features = false } # used by the xous-usb-hid crate
num_enum = { version = "0.5", default-features = false } # used by the xous-usb-hid crate
bao1x-hal = { path = "../../libs/bao1x-hal", features = [
"std",
], optional = true }
bao1x-hal-service = { path = "../bao1x-hal-service", optional = true }
# Mass storage support
usbd_scsi = { path = "../../libs/mass-storage/usbd_scsi", optional = true }
usbd_mass_storage = { path = "../../libs/mass-storage/usbd_mass_storage", optional = true }
# Serial support
usbd-serial = "0.1.1"
ghostfat = "0.5.0"
fugit = "0.3.7"
frunk_core = "0.4.2"
[dependencies.usb-device]
# see top level Cargo.toml for patch.crates-io directive to help with dev work
version = "0.2.8"
features = ["log"]
[dev-dependencies]
rand = "0.8.5"
rand_chacha = "0.3.1"
[features]
precursor = ["utralib/precursor", "utralib/std", "keyboard", "modals", "trng"]
hosted = ["utralib/hosted", "utralib/std", "keyboard", "modals", "trng"]
renode = ["utralib/renode", "utralib/std", "keyboard", "modals", "trng"]
minimal = ["mass-storage"]
mass-storage = ["usbd_scsi", "usbd_mass_storage"]
auto-trng = []
mjolnir = [
] # the big hammer for debugging Spinal USB issues. A raw memory dump of config and descriptor space. Use with care.
pinger = []
# bao1x targets must specify no default features; this is necessary for cargo doc to work.
default = ["trng"]