kvfmt="valuable"
This library provides a convenient macro generating structured logging-esque strings with a minimalistic syntax.
[]
= "0.1"
Example
use kvfmt;
Details
- This macro supports any number of identifiers, optionally prefixed with a
?
to indicate that it should be formatted with theDebug
trait rather than theDisplay
trait which is the default.kvfmt!(dir)
⟶format!("dir={}", dir)
kvfmt!(?dir)
⟶format!("dir={:?}", dir)
License
Credits
A special thanks to Nika for helping me write the macro and David whose wonderful README style I continously steal for all of my projects.