RKTK API Docs RKTK Home Repo

rktk_log/
lib.rs

1#![no_std]
2
3pub mod helper;
4#[doc(hidden)]
5pub mod macros;
6
7#[cfg(not(feature = "defmt"))]
8pub trait MaybeFormat: core::fmt::Debug {}
9#[cfg(not(feature = "defmt"))]
10impl<T> MaybeFormat for T where T: core::fmt::Debug {}
11
12#[cfg(feature = "defmt")]
13pub trait MaybeFormat: core::fmt::Debug + defmt::Format {}
14#[cfg(feature = "defmt")]
15impl<T> MaybeFormat for T where T: core::fmt::Debug + defmt::Format {}