Working on a an embedded project where there is the ability to log errors and structures with defmt, this does require adding a new conditional dependency and adding a conditional derive as follows. This would be particularly useful for reporting errors from JSON de-serialization.
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum Error {
...
}