defmt 0.2.3

A highly efficient logging framework that targets resource-constrained devices, like microcontrollers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    defmt::info!("hello");
}

#[defmt::global_logger]
struct Logger;

unsafe impl defmt::Logger for Logger {
    fn acquire() -> Option<core::ptr::NonNull<dyn defmt::Write>> {
        None
    }
    unsafe fn release(_writer: core::ptr::NonNull<dyn defmt::Write>) {}
}

defmt::timestamp!("{=u32}", 0);