From d5e6e64fb10b355b72c3320d0f5c25202273c31a Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 4 Feb 2022 11:15:56 -0800 Subject: [PATCH] serde: prepare to release 0.1.3 # 0.1.3 (February 4, 2022) This release adds *experimental* support for recording structured field values using the [`valuable`] crate. See [this blog post][post] for details on `valuable`. Note that `valuable` support currently requires `--cfg tracing_unstable`. See the documentation for details. ### Added - **valuable**: Experimental support for serializing user-defined types using [`valuable`] and [`valuable-serde`] ([#1862]) - Support for serializing `f64` values ([#1507]) ### Fixed - Fixed incorrect size hint in `SerializeFieldSet` ([#1333]) - A number of documentation fixes Thanks to @akinnane and @maxburke for contributing to this release! [`valuable`]: https://crates.io/crates/valuable [`valuable-serde`]: https://crates.io/crates/valuable-serde [post]: https://tokio.rs/blog/2021-05-valuable [#1862]: https://github.com/tokio-rs/tracing/pull/1862 [#1507]: https://github.com/tokio-rs/tracing/pull/1507 [#1333]: https://github.com/tokio-rs/tracing/pull/1333 (I also noticed there was a missing changelog entry for v0.1.2, so I fixed that while I was here) --- tracing-serde/CHANGELOG.md | 38 +++++++++++++++++++++++++++++++++++ tracing-serde/Cargo.toml | 2 +- tracing-serde/README.md | 2 +- tracing-subscriber/Cargo.toml | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/tracing-serde/CHANGELOG.md b/tracing-serde/CHANGELOG.md index 5154662416..3f4d915e7b 100644 --- a/tracing-serde/CHANGELOG.md +++ b/tracing-serde/CHANGELOG.md @@ -1,3 +1,41 @@ +# 0.1.3 (February 4, 2022) + +This release adds *experimental* support for recording structured field +values using the [`valuable`] crate. See [this blog post][post] for +details on `valuable`. + +Note that `valuable` support currently requires `--cfg +tracing_unstable`. See the documentation for details. + +### Added + +- **valuable**: Experimental support for serializing user-defined types using + [`valuable`] and [`valuable-serde`] ([#1862]) +- Support for serializing `f64` values ([#1507]) + +### Fixed + +- Fixed incorrect size hint in `SerializeFieldSet` ([#1333]) +- A number of documentation fixes + +Thanks to @akinnane and @maxburke for contributing to this release! + +[`valuable`]: https://crates.io/crates/valuable +[`valuable-serde`]: https://crates.io/crates/valuable-serde +[post]: https://tokio.rs/blog/2021-05-valuable +[#1862]: https://github.com/tokio-rs/tracing/pull/1862 +[#1507]: https://github.com/tokio-rs/tracing/pull/1507 +[#1333]: https://github.com/tokio-rs/tracing/pull/1333 + +# 0.1.2 (September 11, 2020) + +### Added + +- `SerdeMapVisitor::finish` to complete serializing the visited objects + (#892) +- `SerdeMapVisitor::take_serializer` to return the serializer wrapped by + a `SerdeMapVisitor` (#892) + # 0.1.1 (February 27, 2020) ### Added diff --git a/tracing-serde/Cargo.toml b/tracing-serde/Cargo.toml index a57b46e3e8..e0575f1dde 100644 --- a/tracing-serde/Cargo.toml +++ b/tracing-serde/Cargo.toml @@ -23,7 +23,7 @@ valuable = ["valuable_crate", "valuable-serde", "tracing-core/valuable"] [dependencies] serde = "1" -tracing-core = { path = "../tracing-core", version = "0.1.2"} +tracing-core = { path = "../tracing-core", version = "0.1.22"} [dev-dependencies] serde_json = "1" diff --git a/tracing-serde/README.md b/tracing-serde/README.md index 09cda49a80..79d3b24418 100644 --- a/tracing-serde/README.md +++ b/tracing-serde/README.md @@ -18,7 +18,7 @@ An adapter for serializing [`tracing`] types using [`serde`]. [`tracing`] is a framework for instrumenting Rust programs to collect scoped, structured, and async-aware diagnostics.`tracing-serde` enables -serializing `tracing` types using [`serde`]. +serializing `tracing` types using [`serde`]. Traditional logging is based on human-readable text messages. `tracing` gives us machine-readable structured diagnostic diff --git a/tracing-subscriber/Cargo.toml b/tracing-subscriber/Cargo.toml index cadfb108a4..c01d747a8b 100644 --- a/tracing-subscriber/Cargo.toml +++ b/tracing-subscriber/Cargo.toml @@ -55,7 +55,7 @@ time = { version = "0.3", features = ["formatting"], optional = true } # only required by the json feature serde_json = { version = "1.0", optional = true } serde = { version = "1.0", optional = true } -tracing-serde = { path = "../tracing-serde", version = "0.1.2", optional = true } +tracing-serde = { path = "../tracing-serde", version = "0.1.3", optional = true } # opt-in deps parking_lot = { version = ">= 0.7, <= 0.11", optional = true }