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

Indirect dependency on regex #28

Open
davidgraeff opened this issue Sep 12, 2019 · 2 comments
Open

Indirect dependency on regex #28

davidgraeff opened this issue Sep 12, 2019 · 2 comments

Comments

@davidgraeff
Copy link

Thanks for this crate!

You are currently using env_logger with default features. This includes the regex crate with default features which adds about 1.3MB to a binaries size (see rust-lang/regex#613).

Could you maybe add (and proxy) the features of env_logger so that a consumer of your crate can disable the default features (ie "regex")?

Something along the lines of the following would help:

[features]
default = ["termcolor", "atty", "humantime", "regex"]
termcolor = ["env_logger/termcolor"]
atty = ["env_logger/atty"]
humantime = ["env_logger/humantime"]
regex = ["env_logger/regex"]
@seanmonstar
Copy link
Owner

Sounds like a good idea to me!

@link2xt
Copy link

link2xt commented Oct 20, 2020

Related: rust-cli/env_logger#181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants