Registry / logging / defmt
library1.0.1rscratesunverified

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

# Cargo.toml [dependencies] defmt = "1.0.1"
INSTALL
IMPORT
SIG · DEFMT
D
defmt
loggingrustv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

info
✓ use defmt::info;

Logs an info message using defmt's efficient logging macro.

use defmt::info; fn main() { info!("Hello, defmt!"); }
Debug
Known issues
gotchaRequires a defmt-compatible logger (e.g., defmt-rtt) and target hardware; does not work on standard desktop environments without a backend.
fix
Add a defmt backend like `defmt-rtt` and ensure your target supports it.
affects: >=0.0.0
Upgrade
Version history
1.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
40
Resources
defmt — cargo add defmt · libregistry