#logging-framework #logging #formatting #logger #formatter #knurling

sys no-std defmt

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

18 releases

new 0.3.9 Nov 27, 2024
0.3.8 May 17, 2024
0.3.6 Feb 7, 2024
0.3.6-beta.1 Jul 7, 2023
0.1.3 Nov 30, 2020

#19 in Embedded development

Download history 29206/week @ 2024-08-07 30680/week @ 2024-08-14 33593/week @ 2024-08-21 34752/week @ 2024-08-28 36212/week @ 2024-09-04 30415/week @ 2024-09-11 33320/week @ 2024-09-18 33105/week @ 2024-09-25 27108/week @ 2024-10-02 30959/week @ 2024-10-09 36340/week @ 2024-10-16 37297/week @ 2024-10-23 40200/week @ 2024-10-30 35426/week @ 2024-11-06 33237/week @ 2024-11-13 33636/week @ 2024-11-20

149,377 downloads per month
Used in 512 crates (449 directly)

MIT/Apache

85KB
1.5K SLoC

defmt

defmt ("de format", short for "deferred formatting") is a highly efficient logging framework that targets resource-constrained devices, like microcontrollers.

For more details about the framework check the book at https://defmt.ferrous-systems.com.

The git version of the defmt book can be viewed at https://defmt-next.ferrous-systems.com/.

Setup

New project

The fastest way to get started with defmt is to use our app-template to set up a new Cortex-M embedded project.

Existing project

To include defmt in your existing project, follow our Application Setup guide.

MSRV

The minimum supported Rust version is 1.76 (or Ferrocene 24.05). defmt is tested against the latest stable Rust version and the MSRV.

Support

defmt is part of the Knurling project, Ferrous Systems' effort at improving tooling used to develop for embedded systems.

If you think that our work is useful, consider sponsoring it via GitHub Sponsors.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

Dependencies

~0.4–1MB
~20K SLoC