My preferred macro API so far is: log::info!("hello {}", "cats", { cat1: "chashu", cat2: "nori", }); But yeahhhh. Try constructing a visitor out of that one using only declarative macros.
Got a feeling writing a proc macros for kv-enabled log is going to be sketch as hell. Needs to destructure a struct, generate one ad-hoc struct, and one dynamic trait impl. And like all the other stuff the log macros already do. Oophhh.
-
-
Show this thread
-
Oh actually, maybe I should just look at what serde_json does to make json! work.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.