Crate defmt

source ·
Expand description

A highly efficient logging framework that targets resource-constrained devices, like microcontrollers.

Check out the defmt book at https://defmt.ferrous-systems.com for more information about how to use it.

§Compatibility

The defmt wire format might change between major versions. Attempting to read a defmt stream with an incompatible version will result in an error. This means that you have to update both the host and target side if a breaking change in defmt is released.

Macros§

Structs§

  • An “adapter” type to feed Debug values into defmt macros, which expect defmt::Format values.
  • An “adapter” type to feed Display values into defmt macros, which expect defmt::Format values.
  • Encode raw defmt frames for sending over the wire.
  • Handle to a defmt logger.
  • An interned string created via intern!.

Traits§

  • Trait for types that can be formatted via defmt.
  • Global logger acquire-release mechanism

Functions§

  • Block until host has read all pending data.

Attribute Macros§