Skip to content

Commit 9744ec0

Browse files
authored
subscriber: update time crate to 0.3.18 (tokio-rs#2550)
Bump up the version of the `time` crate so that we don't need to build with `--cfg unsound_local_offset` for using `fmt::time::LocalTime`.
1 parent 5722b45 commit 9744ec0

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

tracing-subscriber/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ once_cell = { optional = true, version = "1.13.0" }
4949
# fmt
5050
tracing-log = { path = "../tracing-log", version = "0.2", optional = true, default-features = false, features = ["log-tracer", "std"] }
5151
nu-ansi-term = { version = "0.46.0", optional = true }
52-
time = { version = "0.3.2", features = ["formatting"], optional = true }
52+
time = { version = "0.3.18", features = ["formatting"], optional = true }
5353

5454
# only required by the json feature
5555
serde_json = { version = "1.0.82", optional = true }
@@ -73,7 +73,7 @@ regex = { version = "1.6.0", default-features = false, features = ["std"] }
7373
tracing-futures = { path = "../tracing-futures", version = "0.3", default-features = false, features = ["std-future", "std"] }
7474
tokio = { version = "1.20.0", features = ["rt", "macros"] }
7575
# Enable the `time` crate's `macros` feature, for examples.
76-
time = { version = "0.3.2", features = ["formatting", "macros"] }
76+
time = { version = "0.3.18", features = ["formatting", "macros"] }
7777

7878
[badges]
7979
maintenance = { status = "experimental" }

tracing-subscriber/src/fmt/time/time_crate.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ use time::{format_description::well_known, formatting::Formattable, OffsetDateTi
66
///
77
/// To format the current [UTC time] instead, use the [`UtcTime`] type.
88
///
9-
/// <div class="example-wrap" style="display:inline-block">
10-
/// <pre class="compile_fail" style="white-space:normal;font:inherit;">
11-
/// <strong>Warning</strong>: The <a href = "https://docs.rs/time/0.3/time/"><code>time</code>
12-
/// crate</a> must be compiled with <code>--cfg unsound_local_offset</code> in order to use
13-
/// local timestamps. When this cfg is not enabled, local timestamps cannot be recorded, and
14-
/// events will be logged without timestamps.
15-
///
16-
/// See the <a href="https://docs.rs/time/0.3.4/time/#feature-flags"><code>time</code>
17-
/// documentation</a> for more details.
18-
/// </pre></div>
19-
///
209
/// [local time]: https://docs.rs/time/0.3/time/struct.OffsetDateTime.html#method.now_local
2110
/// [UTC time]: https://docs.rs/time/0.3/time/struct.OffsetDateTime.html#method.now_utc
2211
/// [formatter]: https://docs.rs/time/0.3/time/formatting/trait.Formattable.html
@@ -76,19 +65,6 @@ impl<F: Formattable> LocalTime<F> {
7665
/// [`time` crate] with the provided provided format. The format may be any
7766
/// type that implements the [`Formattable`] trait.
7867
///
79-
///
80-
/// <div class="example-wrap" style="display:inline-block">
81-
/// <pre class="compile_fail" style="white-space:normal;font:inherit;">
82-
/// <strong>Warning</strong>: The <a href = "https://docs.rs/time/0.3/time/">
83-
/// <code>time</code> crate</a> must be compiled with <code>--cfg
84-
/// unsound_local_offset</code> in order to use local timestamps. When this
85-
/// cfg is not enabled, local timestamps cannot be recorded, and
86-
/// events will be logged without timestamps.
87-
///
88-
/// See the <a href="https://docs.rs/time/0.3.4/time/#feature-flags">
89-
/// <code>time</code> documentation</a> for more details.
90-
/// </pre></div>
91-
///
9268
/// Typically, the format will be a format description string, or one of the
9369
/// `time` crate's [well-known formats].
9470
///

0 commit comments

Comments
 (0)