defmt 0.3.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() {}
    unsafe fn flush() {}
    unsafe fn release() {}
    unsafe fn write(_bytes: &[u8]) {}
}

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