@@ -14,8 +14,8 @@ license = "MIT OR Apache-2.0"
1414repository = " https://github.com/rust-cli/env_logger/"
1515categories = [" development-tools::debugging" ]
1616keywords = [" logging" , " log" , " logger" ]
17- edition = " 2018 "
18- rust-version = " 1.41 .0" # MSRV
17+ edition = " 2021 "
18+ rust-version = " 1.60 .0" # MSRV
1919include = [
2020 " build.rs" ,
2121 " src/**/*" ,
@@ -37,14 +37,18 @@ pre-release-replacements = [
3737]
3838
3939[features ]
40- default = [" termcolor" , " atty" , " humantime" , " regex" ]
40+ default = [" auto-color" , " humantime" , " regex" ]
41+ color = [" dep:termcolor" ]
42+ auto-color = [" dep:is-terminal" , " color" ]
43+ humantime = [" dep:humantime" ]
44+ regex = [" dep:regex" ]
4145
4246[dependencies ]
4347log = { version = " 0.4.8" , features = [" std" ] }
4448regex = { version = " 1.0.3" , optional = true , default-features =false , features =[" std" , " perf" ] }
4549termcolor = { version = " 1.1.1" , optional = true }
4650humantime = { version = " 2.0.0" , optional = true }
47- atty = { version = " 0.2.5 " , optional = true }
51+ is-terminal = { version = " 0.4.0 " , optional = true }
4852
4953[[test ]]
5054name = " regexp_filter"
0 commit comments