Cargo Features

[dependencies]
cotton-usb-host = { version = "0.1.0", default-features = false, features = ["std", "rp2040", "defmt"] }
default = std

The std feature is set by default whenever cotton-usb-host is added without default-features = false somewhere in the dependency tree.

std default

Enables mockall and std of critical-section and futures

critical-section:

Enable a critical-section implementation for platforms supporting std, based on std::sync::Mutex. If you enable this, the critical-section crate itself provides the implementation, you don't have to get another crate to to do it.

Affects cotton-usb-host::mocks

rp2040 = defmt

Enables cortex-m, rp2040-pac, and rtic-common

rtic-common:

For WakerRegistration

Affects host::rp2040

defmt rp2040?

Enables defmt