Description
Feature Request
Crates
tracing
Motivation
Now that we are not supporting Rust 1.26.0 as our minimum compatible version, we can ship procedural macros in tracing
. Replacing the existing macro_rules
macros should improve user-facing error messages, make the macros more maintainable, and make it easier to add new features to them in the future (such as #83).
Proposal
The macros should be in a separate crate, but they should be re-exported by tracing
. We should re-implement the existing macro syntax prior to adding any new features, and do that separately as a follow-up.
I think the new macros could live in the existingtracing-proc-macros
or tracing-macros
crates. Perhaps we should use tracing-macros
and move everything currently in tracing-proc-macros
there (and rewrite or remove the macros currently in tracing-macros
, which are very experimental).