Cargo Features

[dependencies]
defmt-or-log = { version = "0.2.1", default-features = false, features = ["log", "defmt", "at_least_one"] }
log

Choose at most one of the following two features

Enables log

Affects traits::FormatOrDebug

defmt

Enables defmt

Affects traits::FormatOrDebug

at_least_one default

If enabled, at least one of the above features must be enabled

default = at_least_one

The at_least_one feature is set by default whenever defmt-or-log is added without default-features = false somewhere in the dependency tree.