You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the best way to do this is going to be to have our own set of macros that use #[cfg(...)] to either generate the actual log calls or to no-op, based on the presence of the feature.
The text was updated successfully, but these errors were encountered:
the log crate itself provides a set of features that let a crate choose, at compile time, what level (if any) of log messages it wants to be compiled into the binary.
Due to the nature of rust features, enabling one of these in one place in the graph means it is enabled everywhere, so the log crate itself says it should not be used by library crates.
This does mean, though, that any tool usingwrite-fonts has a simple way of ensuring no logging ends up in the final binary, which solves the underlying issue this is tracking.
I think the best way to do this is going to be to have our own set of macros that use
#[cfg(...)]
to either generate the actual log calls or to no-op, based on the presence of the feature.The text was updated successfully, but these errors were encountered: