| { | ||
| "git": { | ||
| "sha1": "2282191854fa90a5769a5bd139614313f6dbe0b0" | ||
| "sha1": "22be810729014e1e43267fc62fe6df0d7a29aaf7" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+2
-2
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "log" | ||
| version = "0.4.24" | ||
| version = "0.4.25" | ||
| authors = ["The Rust Project Developers"] | ||
@@ -144,2 +144,2 @@ build = false | ||
| release_max_level_warn = [] | ||
| std = ["value-bag?/std"] | ||
| std = [] |
+10
-1
@@ -5,2 +5,10 @@ # Change Log | ||
| ## [0.4.25] - 2025-01-14 | ||
| ## What's Changed | ||
| * Revert loosening of kv cargo features by @KodrAus in https://github.com/rust-lang/log/pull/662 | ||
| **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.24...0.4.25 | ||
| ## [0.4.24] - 2025-01-11 | ||
@@ -334,3 +342,4 @@ | ||
| [Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.24...HEAD | ||
| [Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.25...HEAD | ||
| [0.4.25]: https://github.com/rust-lang/log/compare/0.4.24...0.4.25 | ||
| [0.4.24]: https://github.com/rust-lang/log/compare/0.4.23...0.4.24 | ||
@@ -337,0 +346,0 @@ [0.4.23]: https://github.com/rust-lang/log/compare/0.4.22...0.4.23 |
+8
-17
@@ -388,3 +388,3 @@ //! Structured values. | ||
| #[cfg(feature = "std")] | ||
| #[cfg(feature = "kv_std")] | ||
| mod std_support { | ||
@@ -436,2 +436,9 @@ use std::borrow::Cow; | ||
| impl<'v> Value<'v> { | ||
| /// Try convert this value into a string. | ||
| pub fn to_cow_str(&self) -> Option<Cow<'v, str>> { | ||
| self.inner.to_str() | ||
| } | ||
| } | ||
| impl<'v> From<&'v String> for Value<'v> { | ||
@@ -444,18 +451,2 @@ fn from(v: &'v String) -> Self { | ||
| #[cfg(all(feature = "std", feature = "value-bag"))] | ||
| impl<'v> Value<'v> { | ||
| /// Try to convert this value into a string. | ||
| pub fn to_cow_str(&self) -> Option<std::borrow::Cow<'v, str>> { | ||
| self.inner.to_str() | ||
| } | ||
| } | ||
| #[cfg(all(feature = "std", not(feature = "value-bag")))] | ||
| impl<'v> Value<'v> { | ||
| /// Try to convert this value into a string. | ||
| pub fn to_cow_str(&self) -> Option<std::borrow::Cow<'v, str>> { | ||
| self.inner.to_borrowed_str().map(std::borrow::Cow::Borrowed) | ||
| } | ||
| } | ||
| /// A visitor for a [`Value`]. | ||
@@ -462,0 +453,0 @@ /// |
+1
-1
@@ -345,3 +345,3 @@ // Copyright 2015 The Rust Project Developers. See the COPYRIGHT | ||
| html_favicon_url = "https://www.rust-lang.org/favicon.ico", | ||
| html_root_url = "https://docs.rs/log/0.4.24" | ||
| html_root_url = "https://docs.rs/log/0.4.25" | ||
| )] | ||
@@ -348,0 +348,0 @@ #![warn(missing_docs)] |
Sorry, the diff of this file is not supported yet