|
| 1 | +# 0.3.0 (Oct 22, 2021) |
| 2 | + |
| 3 | +This is a breaking release of `tracing-subscriber`. The primary breaking change |
| 4 | +in this release is the removal of the dependency on the [`chrono` crate], due to |
| 5 | +[RUSTSEC-2020-0159]. To replace `chrono`, support is added for formatting |
| 6 | +timestamps using the [`time` crate] instead. |
| 7 | + |
| 8 | +In addition, this release includes a number of other breaking API changes, such |
| 9 | +as adding (limited) support for `#![no_std]` targets, removing previously |
| 10 | +deprecated APIs, and more. |
| 11 | + |
| 12 | +### Breaking Changes |
| 13 | + |
| 14 | +- Removed APIs deprecated in the v0.2.x release series. |
| 15 | +- Renamed `Layer::new_span` to `Layer::on_new_span` ([#1674]) |
| 16 | +- Removed `Layer` impl for `Arc<L: Layer<S>>` and `Arc<dyn Layer<S> + ...>` |
| 17 | + ([#1649]) |
| 18 | +- Replaced the [`chrono` crate] with the [`time` crate] for timestamp formatting, to |
| 19 | + resolve [RUSTSEC-2020-0159] ([#1646]) |
| 20 | +- Removed `json` and `env-filter` from default features. They must now be |
| 21 | + enabled explictly ([#1647]) |
| 22 | +- Changed `FormatEvent::format_event` and `FormatFields::format_fields` |
| 23 | + trait methods to take a `Writer` type, rather than a `&mut dyn fmt::Write` |
| 24 | + trait object ([#1661]) |
| 25 | +- Changed the signature of the `MakeWriter` trait by adding a lifetime parameter |
| 26 | + ([#781]) |
| 27 | +### Changed |
| 28 | + |
| 29 | +- **layer**: Renamed `Layer::new_span` to `Layer::on_new_span` ([#1674]) |
| 30 | +- **fmt**: Changed `FormatEvent::format_event` and `FormatFields::format_fields` |
| 31 | + trait methods to take a `Writer` type, rather than a `&mut dyn fmt::Write` |
| 32 | + trait object ([#1661]) |
| 33 | +- **json**, **env-filter**: `json` and `env-filter` feature flags are no longer |
| 34 | + enabled by default ([#1647]) |
| 35 | +### Removed |
| 36 | + |
| 37 | +- Removed deprecated `CurrentSpan` type ([#1320]) |
| 38 | +- **registry**: Removed deprecated `SpanRef::parents` iterator, replaced by |
| 39 | + `SpanRef::scope` in [#1431] ([#1648)]) |
| 40 | +- **layer**: Removed deprecated `Context::scope` iterator, replaced by |
| 41 | + `Context::span_scope` and `Context::event_scope` in [#1431] and [#1434] |
| 42 | + ([#1648)]) |
| 43 | +- **layer**: Removed `Layer` impl for `Arc<L: Layer<S>>` and |
| 44 | + `Arc<dyn Layer<S> + ...>`. These interfere with per-layer filtering. ([#1649]) |
| 45 | +- **fmt**: Removed deprecated `LayerBuilder` type ([#1673]) |
| 46 | +- **fmt**: Removed `fmt::Layer::on_event` (renamed to `fmt::Layer::fmt_event`) |
| 47 | + ([#1673]) |
| 48 | +- **fmt**, **chrono**: Removed the `chrono` feature flag and APIs for using the |
| 49 | + [`chrono` crate] for timestamp formatting ([#1646]) |
| 50 | +### Added |
| 51 | + |
| 52 | +- **fmt**, **time**: `LocalTime` and `UtcTime` types for formatting timestamps |
| 53 | + using the [`time` crate] ([#1646]) |
| 54 | +- **fmt**: Added a lifetime parameter to the `MakeWriter` trait, allowing it to |
| 55 | + return a borrowed writer. This enables implementations of `MakeWriter` for |
| 56 | + types such as `Mutex<T: io::Write>` and `std::fs::File`. ([#781]) |
| 57 | +- **env-filter**: Documentation improvements ([#1637]) |
| 58 | +- Support for some APIs on `#![no_std]` targets, by disabling the `std` feature |
| 59 | + flag ([#1660]) |
| 60 | + |
| 61 | +Thanks to @Folyd and @nmathewson for contributing to this release! |
| 62 | + |
| 63 | +[#1320]: https://github.com/tokio-rs/tracing/pull/1320 |
| 64 | +[#1673]: https://github.com/tokio-rs/tracing/pull/1673 |
| 65 | +[#1674]: https://github.com/tokio-rs/tracing/pull/1674 |
| 66 | +[#1646]: https://github.com/tokio-rs/tracing/pull/1646 |
| 67 | +[#1647]: https://github.com/tokio-rs/tracing/pull/1647 |
| 68 | +[#1648]: https://github.com/tokio-rs/tracing/pull/1648 |
| 69 | +[#1649]: https://github.com/tokio-rs/tracing/pull/1649 |
| 70 | +[#1660]: https://github.com/tokio-rs/tracing/pull/1660 |
| 71 | +[#1661]: https://github.com/tokio-rs/tracing/pull/1661 |
| 72 | +[#1431]: https://github.com/tokio-rs/tracing/pull/1431 |
| 73 | +[#1434]: https://github.com/tokio-rs/tracing/pull/1434 |
| 74 | +[#781]: https://github.com/tokio-rs/tracing/pull/781 |
| 75 | + |
| 76 | +[`chrono` crate]: https://crates.io/crates/chrono |
| 77 | +[`time` crate]: https://crates.io/crates/time |
| 78 | +[RUSTSEC-2020-0159]: https://rustsec.org/advisories/RUSTSEC-2020-0159.html |
| 79 | + |
1 | 80 | # 0.2.25 (October 5, 2021) |
2 | 81 |
|
3 | 82 | This release fixes an issue where a `Layer` implementation's custom |
|
0 commit comments