1[package]
2name = "env_logger"
3version = "0.10.2"
4description = """
5A logging implementation for `log` which is configured via an environment
6variable.
7"""
8repository = "https://github.com/rust-cli/env_logger"
9categories = ["development-tools::debugging"]
10keywords = ["logging", "log", "logger"]
11license = "MIT OR Apache-2.0"
12edition = "2021"
13rust-version = "1.60.0" # MSRV
14include = [
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]
27all-features = true
28rustdoc-args = ["--cfg", "docsrs"]
29
30[package.metadata.release]
31pre-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]
40default = ["auto-color", "humantime", "regex"]
41color = ["dep:termcolor"]
42auto-color = ["dep:is-terminal", "color"]
43humantime = ["dep:humantime"]
44regex = ["dep:regex"]
45
46[dependencies]
47log = { version = "0.4.8", features = ["std"] }
48regex = { version = "1.0.3", optional = true, default-features=false, features=["std", "perf"] }
49termcolor = { version = "1.1.1", optional = true }
50humantime = { version = "2.0.0", optional = true }
51is-terminal = { version = "0.4.0", optional = true }
52
53[[test]]
54name = "regexp_filter"
55harness = false
56
57[[test]]
58name = "log-in-log"
59harness = false
60
61[[test]]
62name = "log_tls_dtors"
63harness = false
64
65[[test]]
66name = "init-twice-retains-filter"
67harness = false
68