| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.60.0" |
| 15 |
name = "env_logger" |
| 16 |
version = "0.10.0" |
| 17 |
include = [ |
| 18 |
"build.rs", |
| 19 |
"src/**/*", |
| 20 |
"Cargo.toml", |
| 21 |
"LICENSE*", |
| 22 |
"README.md", |
| 23 |
"tests/**/*", |
| 24 |
"benches/**/*", |
| 25 |
"examples/**/*", |
| 26 |
] |
| 27 |
description = """ |
| 28 |
A logging implementation for `log` which is configured via an environment |
| 29 |
variable. |
| 30 |
""" |
| 31 |
readme = "README.md" |
| 32 |
keywords = [ |
| 33 |
"logging", |
| 34 |
"log", |
| 35 |
"logger", |
| 36 |
] |
| 37 |
categories = ["development-tools::debugging"] |
| 38 |
license = "MIT OR Apache-2.0" |
| 39 |
repository = "https://github.com/rust-cli/env_logger/" |
| 40 |
|
| 41 |
[[package.metadata.release.pre-release-replacements]] |
| 42 |
file = "CHANGELOG.md" |
| 43 |
search = "Unreleased" |
| 44 |
replace = "{{version}}" |
| 45 |
min = 1 |
| 46 |
|
| 47 |
[[package.metadata.release.pre-release-replacements]] |
| 48 |
file = "CHANGELOG.md" |
| 49 |
search = '\.\.\.HEAD' |
| 50 |
replace = "...{{tag_name}}" |
| 51 |
exactly = 1 |
| 52 |
|
| 53 |
[[package.metadata.release.pre-release-replacements]] |
| 54 |
file = "CHANGELOG.md" |
| 55 |
search = "ReleaseDate" |
| 56 |
replace = "{{date}}" |
| 57 |
min = 1 |
| 58 |
|
| 59 |
[[package.metadata.release.pre-release-replacements]] |
| 60 |
file = "CHANGELOG.md" |
| 61 |
search = "<!-- next-header -->" |
| 62 |
replace = """ |
| 63 |
<!-- next-header --> |
| 64 |
## [Unreleased] - ReleaseDate |
| 65 |
""" |
| 66 |
exactly = 1 |
| 67 |
|
| 68 |
[[package.metadata.release.pre-release-replacements]] |
| 69 |
file = "CHANGELOG.md" |
| 70 |
search = "<!-- next-url -->" |
| 71 |
replace = """ |
| 72 |
<!-- next-url --> |
| 73 |
[Unreleased]: https://github.com/rust-cli/env_logger/compare/{{tag_name}}...HEAD""" |
| 74 |
exactly = 1 |
| 75 |
|
| 76 |
[[test]] |
| 77 |
name = "regexp_filter" |
| 78 |
harness = false |
| 79 |
|
| 80 |
[[test]] |
| 81 |
name = "log-in-log" |
| 82 |
harness = false |
| 83 |
|
| 84 |
[[test]] |
| 85 |
name = "log_tls_dtors" |
| 86 |
harness = false |
| 87 |
|
| 88 |
[[test]] |
| 89 |
name = "init-twice-retains-filter" |
| 90 |
harness = false |
| 91 |
|
| 92 |
[dependencies.humantime] |
| 93 |
version = "2.0.0" |
| 94 |
optional = true |
| 95 |
|
| 96 |
[dependencies.is-terminal] |
| 97 |
version = "0.4.0" |
| 98 |
optional = true |
| 99 |
|
| 100 |
[dependencies.log] |
| 101 |
version = "0.4.8" |
| 102 |
features = ["std"] |
| 103 |
|
| 104 |
[dependencies.regex] |
| 105 |
version = "1.0.3" |
| 106 |
features = [ |
| 107 |
"std", |
| 108 |
"perf", |
| 109 |
] |
| 110 |
optional = true |
| 111 |
default-features = false |
| 112 |
|
| 113 |
[dependencies.termcolor] |
| 114 |
version = "1.1.1" |
| 115 |
optional = true |
| 116 |
|
| 117 |
[features] |
| 118 |
auto-color = [ |
| 119 |
"dep:is-terminal", |
| 120 |
"color", |
| 121 |
] |
| 122 |
color = ["dep:termcolor"] |
| 123 |
default = [ |
| 124 |
"auto-color", |
| 125 |
"humantime", |
| 126 |
"regex", |
| 127 |
] |
| 128 |
humantime = ["dep:humantime"] |
| 129 |
regex = ["dep:regex"] |