From af184520e8ea012ec13a5a80f3e5c9155321bcba Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Sat, 6 Jul 2019 11:59:53 +1000 Subject: [PATCH 1/2] prepare for 0.4.7 release --- CHANGELOG.md | 17 ++++++++++++++++- Cargo.toml | 2 +- src/kv/mod.rs | 14 +++++++++++++- src/lib.rs | 2 +- 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index edc161783..490201a03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ ## [Unreleased] +## [0.4.7] - 2019-07-06 + +### New + +* Support for embedded environments with thread-unsafe initialization. +* Initial unstable support for capturing structured data under the `kv_unstable` +feature gate. This new API doesn't affect existing users and may change in future +patches (so those changes may not appear in the changelog until it stabilizes). + +### Improved + +* Docs for using `log` with the 2018 edition. +* Error messages for macros missing arguments. + ## [0.4.6] - 2018-10-27 ### Improved @@ -112,7 +126,8 @@ version using log 0.4.x to avoid losing module and file information. Look at the [release tags] for information about older releases. -[Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.6...HEAD +[Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.7...HEAD +[0.4.7]: https://github.com/rust-lang-nursery/log/compare/0.4.6...0.4.7 [0.4.6]: https://github.com/rust-lang-nursery/log/compare/0.4.5...0.4.6 [0.4.5]: https://github.com/rust-lang-nursery/log/compare/0.4.4...0.4.5 [0.4.4]: https://github.com/rust-lang-nursery/log/compare/0.4.3...0.4.4 diff --git a/Cargo.toml b/Cargo.toml index 3530a9d96..c254d4607 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "log" -version = "0.4.6" # remember to update html_root_url +version = "0.4.7" # remember to update html_root_url authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" diff --git a/src/kv/mod.rs b/src/kv/mod.rs index 5fe6ab833..17226b4cf 100644 --- a/src/kv/mod.rs +++ b/src/kv/mod.rs @@ -1,4 +1,16 @@ -//! Structured key-value pairs. +//! **UNSTABLE:** Structured key-value pairs. +//! +//! This module is unstable and breaking changes may be made +//! at any time. See [the tracking issue](https://github.com/rust-lang-nursery/log/issues/328) +//! for more details. +//! +//! Add the `kv_unstable` feature to your `Cargo.toml` to enable +//! this module: +//! +//! ```toml +//! [dependencies.log] +//! features = ["kv_unstable"] +//! ``` mod error; mod source; diff --git a/src/lib.rs b/src/lib.rs index ee70aac92..c95837d74 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -267,7 +267,7 @@ #![doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "https://www.rust-lang.org/favicon.ico", - html_root_url = "https://docs.rs/log/0.4.6" + html_root_url = "https://docs.rs/log/0.4.7" )] #![warn(missing_docs)] #![deny(missing_debug_implementations)] From 8075b6912df9c25c359207fa0ee85ed6eb6c5de1 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Sat, 6 Jul 2019 12:02:36 +1000 Subject: [PATCH 2/2] include kv_unstable feature in docs.rs --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c254d4607..0e4c79998 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ exclude = ["rfcs/**/*", "/.travis.yml", "/appveyor.yml"] build = "build.rs" [package.metadata.docs.rs] -features = ["std", "serde"] +features = ["std", "serde", "kv_unstable"] [[test]] name = "filters"