Skip to content

Indirect dependency on regex #3

Closed
@davidgraeff

Description

@davidgraeff

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 = ["cargo","termcolor", "atty", "humantime", "regex"]
cargo = ["toml"]
termcolor = ["env_logger/termcolor"]
atty = ["env_logger/atty"]
humantime = ["env_logger/humantime"]
regex = ["env_logger/regex"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions