This adds support for defmt via the defmt feature flag. This mainly brings defmt to the error types, but also adds it to Orientation.
To improve documentation, I added a rustdoc conditional feature for highlighting gated feature. All of the defmt::Format implementations could have been simply derived with a cfg_attr, but it doesn't work smoothly with the #[cfg_attr(docsrs, doc(...))] annotation.
This adds support for defmt via the
defmt
feature flag. This mainly brings defmt to the error types, but also adds it toOrientation
.To improve documentation, I added a rustdoc conditional feature for highlighting gated feature. All of the
defmt::Format
implementations could have been simply derived with acfg_attr
, but it doesn't work smoothly with the#[cfg_attr(docsrs, doc(...))]
annotation.To test documentation, you can run:
It should render like this: