Skip to content

Commit 0c404d5

Browse files
committed
Make regex a feature of this crate, passed through to env_logger
This allows to deactivate the feature if wanted. env_logger comes with several optional-but-default-activated features, including a dependency on regex. Not everyone likes to pull in regex. Putting this behind a feature allows users of android_logger to use it with default-features=false and thus removing the regex dependency.
1 parent e1c0647 commit 0c404d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ A logging implementation for `log` which hooks to android log output.
1111
keywords = ["android", "bindings", "log", "logger"]
1212
categories = ["api-bindings"]
1313

14+
[features]
15+
default = ["regex"]
16+
regex = ["env_logger/regex"]
17+
1418
[dependencies]
1519
lazy_static = "1.0"
1620

0 commit comments

Comments
 (0)