68 lines
1.8 KiB
TOML
68 lines
1.8 KiB
TOML
|
|
[workspace]
|
||
|
|
members = [
|
||
|
|
"ci"
|
||
|
|
]
|
||
|
|
|
||
|
|
[package]
|
||
|
|
name = "env_logger"
|
||
|
|
version = "0.10.0"
|
||
|
|
description = """
|
||
|
|
A logging implementation for `log` which is configured via an environment
|
||
|
|
variable.
|
||
|
|
"""
|
||
|
|
license = "MIT OR Apache-2.0"
|
||
|
|
repository = "https://github.com/rust-cli/env_logger/"
|
||
|
|
categories = ["development-tools::debugging"]
|
||
|
|
keywords = ["logging", "log", "logger"]
|
||
|
|
edition = "2021"
|
||
|
|
rust-version = "1.60.0" # MSRV
|
||
|
|
include = [
|
||
|
|
"build.rs",
|
||
|
|
"src/**/*",
|
||
|
|
"Cargo.toml",
|
||
|
|
"LICENSE*",
|
||
|
|
"README.md",
|
||
|
|
"tests/**/*",
|
||
|
|
"benches/**/*",
|
||
|
|
"examples/**/*"
|
||
|
|
]
|
||
|
|
|
||
|
|
[package.metadata.release]
|
||
|
|
pre-release-replacements = [
|
||
|
|
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
|
||
|
|
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
|
||
|
|
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
|
||
|
|
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
|
||
|
|
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/rust-cli/env_logger/compare/{{tag_name}}...HEAD", exactly=1},
|
||
|
|
]
|
||
|
|
|
||
|
|
[features]
|
||
|
|
default = ["auto-color", "humantime", "regex"]
|
||
|
|
color = ["dep:termcolor"]
|
||
|
|
auto-color = ["dep:is-terminal", "color"]
|
||
|
|
humantime = ["dep:humantime"]
|
||
|
|
regex = ["dep:regex"]
|
||
|
|
|
||
|
|
[dependencies]
|
||
|
|
log = { version = "0.4.8", features = ["std"] }
|
||
|
|
regex = { version = "1.0.3", optional = true, default-features=false, features=["std", "perf"] }
|
||
|
|
termcolor = { version = "1.1.1", optional = true }
|
||
|
|
humantime = { version = "2.0.0", optional = true }
|
||
|
|
is-terminal = { version = "0.4.0", optional = true }
|
||
|
|
|
||
|
|
[[test]]
|
||
|
|
name = "regexp_filter"
|
||
|
|
harness = false
|
||
|
|
|
||
|
|
[[test]]
|
||
|
|
name = "log-in-log"
|
||
|
|
harness = false
|
||
|
|
|
||
|
|
[[test]]
|
||
|
|
name = "log_tls_dtors"
|
||
|
|
harness = false
|
||
|
|
|
||
|
|
[[test]]
|
||
|
|
name = "init-twice-retains-filter"
|
||
|
|
harness = false
|