Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pattern_encoder feature less infectious #265

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Cassy343
Copy link

@Cassy343 Cassy343 commented Jun 10, 2022

Currently, whenever an appender is used this enables the pattern_encoder feature. This feature in turn pulls in chrono. This can be a bit frustrating for users if they are supplying their own appenders which use the time crate, and never make use of PatternEncoder.

This PR eliminates the dependence of the appender features on pattern_encoder. I tried to make this as little of a breaking change as possible. Anyone using the default features will see no change to their code, and unless someone is using an appender without the pattern encoder feature then their code will also continue to compile. That being said, this is still technically a breaking change to the public API.

I am open to suggestions regarding if/how the public API should be changed should this be accepted.

src/append/console.rs Outdated Show resolved Hide resolved
@Cassy343 Cassy343 requested a review from estk June 15, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants