1 | [package] |
2 | name = "env_logger" |
3 | version = "0.10.2" |
4 | description = "" " |
5 | A logging implementation for `log` which is configured via an environment |
6 | variable. |
7 | " "" |
8 | repository = "https://github.com/rust-cli/env_logger" |
9 | categories = ["development-tools::debugging" ] |
10 | keywords = ["logging" , "log" , "logger" ] |
11 | license = "MIT OR Apache-2.0" |
12 | edition = "2021" |
13 | rust-version = "1.60.0" # MSRV |
14 | include = [ |
15 | "build.rs" , |
16 | "src/**/*" , |
17 | "Cargo.toml" , |
18 | "Cargo.lock" , |
19 | "LICENSE*" , |
20 | "README.md" , |
21 | "benches/**/*" , |
22 | "examples/**/*" , |
23 | "tests/**/*" , |
24 | ] |
25 | |
26 | [package.metadata.docs.rs] |
27 | all-features = true |
28 | rustdoc-args = ["--cfg" , "docsrs" ] |
29 | |
30 | [package.metadata.release] |
31 | pre-release-replacements = [ |
32 | {file="CHANGELOG.md" , search="Unreleased" , replace="{{version}}" , min=1}, |
33 | {file="CHANGELOG.md" , search="\\.\\.\\.HEAD" , replace="...{{tag_name}}" , exactly=1}, |
34 | {file="CHANGELOG.md" , search="ReleaseDate" , replace="{{date}}" , min=1}, |
35 | {file="CHANGELOG.md" , search="<!-- next-header -->" , replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n" , exactly=1}, |
36 | {file="CHANGELOG.md" , search="<!-- next-url -->" , replace="<!-- next-url -->\n[Unreleased]: https://github.com/rust-cli/env_logger/compare/{{tag_name}}...HEAD" , exactly=1}, |
37 | ] |
38 | |
39 | [features] |
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" ] |
45 | |
46 | [dependencies] |
47 | log = { version = "0.4.8" , features = ["std" ] } |
48 | regex = { version = "1.0.3" , optional = true, default-features=false, features=["std" , "perf" ] } |
49 | termcolor = { version = "1.1.1" , optional = true } |
50 | humantime = { version = "2.0.0" , optional = true } |
51 | is-terminal = { version = "0.4.0" , optional = true } |
52 | |
53 | [[test]] |
54 | name = "regexp_filter" |
55 | harness = false |
56 | |
57 | [[test]] |
58 | name = "log-in-log" |
59 | harness = false |
60 | |
61 | [[test]] |
62 | name = "log_tls_dtors" |
63 | harness = false |
64 | |
65 | [[test]] |
66 | name = "init-twice-retains-filter" |
67 | harness = false |
68 | |