diff options
Diffstat (limited to 'Cargo.toml.orig')
-rw-r--r-- | Cargo.toml.orig | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/Cargo.toml.orig b/Cargo.toml.orig index 29c77b3..64b9ee9 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,31 +1,54 @@ +[workspace] +members = [ + "ci" +] + [package] name = "env_logger" -edition = "2018" -version = "0.9.0" -authors = ["The Rust Project Developers"] -license = "MIT/Apache-2.0" -readme = "README.md" -repository = "https://github.com/env-logger-rs/env_logger/" -documentation = "https://docs.rs/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"] -include = ["src/**/*", "tests", "LICENSE-*", "README.md", "CHANGELOG.md"] +edition = "2021" +rust-version = "1.60.0" # MSRV +include = [ + "build.rs", + "src/**/*", + "Cargo.toml", + "LICENSE*", + "README.md", + "tests/**/*", + "benches/**/*", + "examples/**/*" +] -[workspace] -members = [ - "ci" +[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.0.2", optional = true } +termcolor = { version = "1.1.1", optional = true } humantime = { version = "2.0.0", optional = true } -atty = { version = "0.2.5", optional = true } +is-terminal = { version = "0.4.0", optional = true } [[test]] name = "regexp_filter" @@ -42,6 +65,3 @@ harness = false [[test]] name = "init-twice-retains-filter" harness = false - -[features] -default = ["termcolor", "atty", "humantime", "regex"] |