-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathCargo.toml
More file actions
57 lines (53 loc) · 2.14 KB
/
Cargo.toml
File metadata and controls
57 lines (53 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[package]
name = "slog-term"
version = "2.9.2"
authors = ["Dawid Ciężarkiewicz <dpc@dpc.pw>"]
description = "Unix terminal drain and formatter for slog-rs"
keywords = ["slog", "logging", "log", "term"]
license = "MPL-2.0 OR MIT OR Apache-2.0"
documentation = "https://docs.rs/slog-term"
homepage = "https://github.com/slog-rs/slog"
repository = "https://github.com/slog-rs/term"
readme = "README.md"
edition = "2018"
# This is our Minimum Supported Rust Version (MSRV)
#
# Please do not bump this unnecessarily.
# Changing this should bump the minor version for semver (2.x for semver).
#
# The first version of Cargo that supports this field was in Rust 1.56.0.
# In older releases, the field will be ignored, and Cargo will display a warning.
rust-version = "1.63"
[features]
nested-values = ["erased-serde", "serde", "serde_json", "slog/nested-values"]
[dependencies]
slog = "2"
is-terminal = "0.4"
time = { version = "0.3", default-features = false, features = ["macros", "formatting"] }
thread_local = "1"
term = "1"
erased-serde = {version = "0.3", optional = true }
serde = {version = "1.0", optional = true }
serde_json = {version = "1.0", optional = true }
# We use chrono is to determine the local timezone offset.
# This is because time uses POSIX localtime_r,
# which is not guaranteed to be thread-safe
#
# However, chrono _is_ threadsafe. It works around this issue by
# using a custom reimplementation of the timezone detection logic.
#
# Therefore, whenever the feature 'localtime' is requested,
# we add a dependency on chrono to detect the timezone.
#
# See PR #44 for the original discussion of this issue.
chrono = "0.4"
[dev-dependencies]
slog-async = "2"
[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-url -->", replace="<!-- next-url -->\n## [Unreleased](https://github.com/slog-rs/term/compare/{{tag_name}}...HEAD) - ReleaseDate\n\n", exactly=1},
]
shared-version=true