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 prebuild feature is set by default whenever musb is added without default-features = false somewhere in the dependency tree.

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

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.

embassy-sync defmt? embassy-usb-driver-impl? log?
usb-device defmt? log? usb-device-impl?