Closed Felerius closed 2 years ago
I just realized that renaming the xml and log re-exports is technically a breaking change since they might be used outside of yaserde_derive. If you don't want that then, they could instead be made doc(hidden)
without renaming them.
This fixes #16 by allowing users to filter out the log messages. For example,
works as expected now. After upgrading to env_logger 0.9, it even shows
yaserde_derive
instead of the module path in the logging messages (due to env-logger-rs/env_logger#209):To avoid specifying
target: "yaserde_derive"
in every logging call, I created custom__derive_debug
and__derive_trace
macros in the main crate. However, they could just as well be inlined. Lastly, I hid the re-exported xml and log crates from docs and prefixed them with__
to indicate that they're not considered public api.