Cargo Features
[dependencies]
musb = { version = "0.2.0", default-features = false, features = ["embassy-usb-driver-impl", "usb-device-impl", "defmt", "log", "builtin-std", "prebuild", "endpoints-num-6", "endpoints-num-12", "endpoints-num-16"] }
- default = prebuild
-
The
prebuild
feature is set by default whenevermusb
is added without
somewhere in the dependency tree.default-features = false - embassy-usb-driver-impl = embassy-sync
- usb-device-impl = usb-device
- defmt
-
Enables defmt, defmt of embassy-sync, embassy-usb-driver, and usb-device
- log
-
Enables log of embassy-sync and usb-device
usb-device:
Enable logging and tracing via the
log
crate - builtin-py32f07x builtin-py32f403 builtin-std
- prebuild default
- endpoints-num-2 endpoints-num-4 endpoints-num-6
- endpoints-num-8 endpoints-num-12
- endpoints-num-16
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.