Cargo Features
[dependencies]
musb = { version = "0.3.0", default-features = false, features = ["embassy-usb-driver-impl", "usb-device-impl", "defmt", "log", "prebuild", "builtin-py32f07x", "builtin-sf32lb52x", "builtin-readconf"] }
- default = prebuild
-
The
prebuildfeature is set by default whenevermusbis added withoutsomewhere 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
logcrate - prebuild default
- builtin-std-8bep-2048 builtin-py32f07x
- builtin-py32f403 builtin-sf32lb52x
- builtin-readconf
-
for musb-readconf only
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.