| { | ||
| "git": { | ||
| "sha1": "6e1735597bb21c5d979a077395df85e1d633e077" | ||
| "sha1": "b1e2df7bce7a1b685aa9bfd1db0a5cac1f0fc27d" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
@@ -38,7 +38,6 @@ name: CI | ||
| - uses: actions/checkout@v4 | ||
| - name: Install toolchain | ||
| run: | | ||
| rustup update ${{ matrix.rust }} --no-self-update | ||
| rustup default ${{ matrix.rust }} | ||
| cargo +stable install cargo-hack --locked | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ matrix.rust }} | ||
| - uses: taiki-e/install-action@cargo-hack | ||
| - run: cargo hack test --feature-powerset --exclude-features max_level_off,max_level_error,max_level_warn,max_level_info,max_level_debug,max_level_trace,release_max_level_off,release_max_level_error,release_max_level_warn,release_max_level_info,release_max_level_debug,release_max_level_trace | ||
@@ -53,7 +52,5 @@ - run: cargo run --verbose --manifest-path test_max_level_features/Cargo.toml | ||
| - uses: actions/checkout@v4 | ||
| - name: Install toolchain | ||
| run: | | ||
| rustup update stable --no-self-update | ||
| rustup default stable | ||
| rustup component add clippy rustfmt | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: clippy | ||
| - run: cargo fmt -- --check | ||
@@ -69,11 +66,7 @@ - run: cargo fmt --manifest-path test_max_level_features/Cargo.toml -- --check | ||
| - uses: actions/checkout@v4 | ||
| - name: Install toolchain | ||
| run: | | ||
| rustup update stable --no-self-update | ||
| rustup default stable | ||
| rustup component add rust-docs | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| - name: Run rustdoc | ||
| env: | ||
| RUSTDOCFLAGS: "-D warnings" | ||
| run: cargo doc --verbose --features std,serde,sval,sval_ref,value-bag,kv,kv_std,kv_sval,kv_serde | ||
| run: cargo doc --verbose --features std,kv,kv_std,kv_sval,kv_serde | ||
@@ -85,6 +78,3 @@ features: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install toolchain | ||
| run: | | ||
| rustup update nightly --no-self-update | ||
| rustup default nightly | ||
| - uses: dtolnay/rust-toolchain@nightly | ||
| - run: cargo build --verbose -Z avoid-dev-deps --features kv | ||
@@ -102,6 +92,3 @@ - run: cargo build --verbose -Z avoid-dev-deps --features "kv std" | ||
| - uses: actions/checkout@v4 | ||
| - name: Install toolchain | ||
| run: | | ||
| rustup update nightly --no-self-update | ||
| rustup default nightly | ||
| - uses: dtolnay/rust-toolchain@nightly | ||
| - run: cargo build --verbose -Z minimal-versions --features kv | ||
@@ -119,7 +106,6 @@ - run: cargo build --verbose -Z minimal-versions --features "kv std" | ||
| - uses: actions/checkout@v4 | ||
| - name: Install toolchain | ||
| run: | | ||
| rustup update 1.61.0 --no-self-update | ||
| rustup default 1.61.0 | ||
| cargo +stable install cargo-hack --locked | ||
| - uses: dtolnay/rust-toolchain@1.68.0 | ||
| with: | ||
| components: clippy | ||
| - uses: taiki-e/install-action@cargo-hack | ||
| - run: cargo hack test --feature-powerset --exclude-features max_level_off,max_level_error,max_level_warn,max_level_info,max_level_debug,max_level_trace,release_max_level_off,release_max_level_error,release_max_level_warn,release_max_level_info,release_max_level_debug,release_max_level_trace | ||
@@ -134,8 +120,5 @@ - run: cargo run --verbose --manifest-path test_max_level_features/Cargo.toml | ||
| - uses: actions/checkout@v4 | ||
| - name: Install toolchain | ||
| run: | | ||
| rustup update stable --no-self-update | ||
| rustup default stable | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| - run: rustup target add thumbv6m-none-eabi riscv32imc-unknown-none-elf | ||
| - run: cargo build --verbose --target=thumbv6m-none-eabi | ||
| - run: cargo build --verbose --target=riscv32imc-unknown-none-elf |
+63
-50
@@ -7,7 +7,8 @@ # This file is automatically @generated by Cargo. | ||
| name = "erased-serde" | ||
| version = "0.4.6" | ||
| version = "0.4.9" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "e004d887f51fcb9fef17317a2f3525c887d8aa3f4f50fed920816a688284a5b7" | ||
| checksum = "89e8918065695684b2b0702da20382d5ae6065cf3327bc2d6436bd49a71ce9f3" | ||
| dependencies = [ | ||
| "serde", | ||
| "serde_core", | ||
| "typeid", | ||
@@ -24,6 +25,7 @@ ] | ||
| name = "log" | ||
| version = "0.4.28" | ||
| version = "0.4.29" | ||
| dependencies = [ | ||
| "proc-macro2", | ||
| "serde", | ||
| "serde_core", | ||
| "serde_json", | ||
@@ -39,11 +41,11 @@ "serde_test", | ||
| name = "memchr" | ||
| version = "2.7.5" | ||
| version = "2.7.6" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" | ||
| checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" | ||
| [[package]] | ||
| name = "proc-macro2" | ||
| version = "1.0.101" | ||
| version = "1.0.103" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de" | ||
| checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" | ||
| dependencies = [ | ||
@@ -55,5 +57,5 @@ "unicode-ident", | ||
| name = "quote" | ||
| version = "1.0.40" | ||
| version = "1.0.42" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" | ||
| checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f" | ||
| dependencies = [ | ||
@@ -71,6 +73,7 @@ "proc-macro2", | ||
| name = "serde" | ||
| version = "1.0.219" | ||
| version = "1.0.228" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" | ||
| checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" | ||
| dependencies = [ | ||
| "serde_core", | ||
| "serde_derive", | ||
@@ -80,6 +83,15 @@ ] | ||
| [[package]] | ||
| name = "serde_core" | ||
| version = "1.0.228" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" | ||
| dependencies = [ | ||
| "serde_derive", | ||
| ] | ||
| [[package]] | ||
| name = "serde_derive" | ||
| version = "1.0.219" | ||
| version = "1.0.228" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" | ||
| checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" | ||
| dependencies = [ | ||
@@ -93,7 +105,7 @@ "proc-macro2", | ||
| name = "serde_fmt" | ||
| version = "1.0.3" | ||
| version = "1.1.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "e1d4ddca14104cd60529e8c7f7ba71a2c8acd8f7f5cfcdc2faf97eeb7c3010a4" | ||
| checksum = "6e497af288b3b95d067a23a4f749f2861121ffcb2f6d8379310dcda040c345ed" | ||
| dependencies = [ | ||
| "serde", | ||
| "serde_core", | ||
| ] | ||
@@ -103,5 +115,5 @@ | ||
| name = "serde_json" | ||
| version = "1.0.143" | ||
| version = "1.0.145" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a" | ||
| checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" | ||
| dependencies = [ | ||
@@ -112,2 +124,3 @@ "itoa", | ||
| "serde", | ||
| "serde_core", | ||
| ] | ||
@@ -126,11 +139,11 @@ | ||
| name = "sval" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "7cc9739f56c5d0c44a5ed45473ec868af02eb896af8c05f616673a31e1d1bb09" | ||
| checksum = "502b8906c4736190684646827fbab1e954357dfe541013bbd7994d033d53a1ca" | ||
| [[package]] | ||
| name = "sval_buffer" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "f39b07436a8c271b34dad5070c634d1d3d76d6776e938ee97b4a66a5e8003d0b" | ||
| checksum = "c4b854348b15b6c441bdd27ce9053569b016a0723eab2d015b1fd8e6abe4f708" | ||
| dependencies = [ | ||
@@ -143,5 +156,5 @@ "sval", | ||
| name = "sval_derive" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "0fcb59acf1048b0d0472a2393fc4bb3082217103245f51470313298ec7b7fbe6" | ||
| checksum = "d32579aae2a134498be6d360355d7f085260377479d08cb032f0a90340bfd72d" | ||
| dependencies = [ | ||
@@ -153,5 +166,5 @@ "sval_derive_macros", | ||
| name = "sval_derive_macros" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "0b0dcdc2dad24659b85a75c0fe56a62e6d7d7ff8168195dc8117e6d98e528fc9" | ||
| checksum = "c855576b719497b925e9646ec865ffb79122027aeafee855b18f0612cc998947" | ||
| dependencies = [ | ||
@@ -165,5 +178,5 @@ "proc-macro2", | ||
| name = "sval_dynamic" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "ffcb072d857431bf885580dacecf05ed987bac931230736739a79051dbf3499b" | ||
| checksum = "a0bd9e8b74410ddad37c6962587c5f9801a2caadba9e11f3f916ee3f31ae4a1f" | ||
| dependencies = [ | ||
@@ -175,5 +188,5 @@ "sval", | ||
| name = "sval_fmt" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "3f214f427ad94a553e5ca5514c95c6be84667cbc5568cce957f03f3477d03d5c" | ||
| checksum = "6fe17b8deb33a9441280b4266c2d257e166bafbaea6e66b4b34ca139c91766d9" | ||
| dependencies = [ | ||
@@ -187,5 +200,5 @@ "itoa", | ||
| name = "sval_json" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "389ed34b32e638dec9a99c8ac92d0aa1220d40041026b625474c2b6a4d6f4feb" | ||
| checksum = "854addb048a5bafb1f496c98e0ab5b9b581c3843f03ca07c034ae110d3b7c623" | ||
| dependencies = [ | ||
@@ -199,5 +212,5 @@ "itoa", | ||
| name = "sval_nested" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "14bae8fcb2f24fee2c42c1f19037707f7c9a29a0cda936d2188d48a961c4bb2a" | ||
| checksum = "96cf068f482108ff44ae8013477cb047a1665d5f1a635ad7cf79582c1845dce9" | ||
| dependencies = [ | ||
@@ -211,5 +224,5 @@ "sval", | ||
| name = "sval_ref" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "2a4eaea3821d3046dcba81d4b8489421da42961889902342691fb7eab491d79e" | ||
| checksum = "ed02126365ffe5ab8faa0abd9be54fbe68d03d607cd623725b0a71541f8aaa6f" | ||
| dependencies = [ | ||
@@ -221,7 +234,7 @@ "sval", | ||
| name = "sval_serde" | ||
| version = "2.14.1" | ||
| version = "2.16.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "172dd4aa8cb3b45c8ac8f3b4111d644cd26938b0643ede8f93070812b87fb339" | ||
| checksum = "a263383c6aa2076c4ef6011d3bae1b356edf6ea2613e3d8e8ebaa7b57dd707d5" | ||
| dependencies = [ | ||
| "serde", | ||
| "serde_core", | ||
| "sval", | ||
@@ -233,5 +246,5 @@ "sval_nested", | ||
| name = "syn" | ||
| version = "2.0.106" | ||
| version = "2.0.111" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" | ||
| checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87" | ||
| dependencies = [ | ||
@@ -251,11 +264,11 @@ "proc-macro2", | ||
| name = "unicode-ident" | ||
| version = "1.0.18" | ||
| version = "1.0.22" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" | ||
| checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" | ||
| [[package]] | ||
| name = "value-bag" | ||
| version = "1.11.1" | ||
| version = "1.12.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "943ce29a8a743eb10d6082545d861b24f9d1b160b7d741e0f2cdf726bec909c5" | ||
| checksum = "7ba6f5989077681266825251a52748b8c1d8a4ad098cc37e440103d0ea717fc0" | ||
| dependencies = [ | ||
@@ -268,8 +281,8 @@ "value-bag-serde1", | ||
| name = "value-bag-serde1" | ||
| version = "1.11.1" | ||
| version = "1.12.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "35540706617d373b118d550d41f5dfe0b78a0c195dc13c6815e92e2638432306" | ||
| checksum = "16530907bfe2999a1773ca5900a65101e092c70f642f25cc23ca0c43573262c5" | ||
| dependencies = [ | ||
| "erased-serde", | ||
| "serde", | ||
| "serde_core", | ||
| "serde_fmt", | ||
@@ -280,5 +293,5 @@ ] | ||
| name = "value-bag-sval2" | ||
| version = "1.11.1" | ||
| version = "1.12.0" | ||
| source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| checksum = "6fe7e140a2658cc16f7ee7a86e413e803fc8f9b5127adc8755c19f9fefa63a52" | ||
| checksum = "d00ae130edd690eaa877e4f40605d534790d1cf1d651e7685bd6a144521b251f" | ||
| dependencies = [ | ||
@@ -285,0 +298,0 @@ "sval", |
+10
-9
@@ -14,5 +14,5 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| edition = "2021" | ||
| rust-version = "1.61.0" | ||
| rust-version = "1.68.0" | ||
| name = "log" | ||
| version = "0.4.28" | ||
| version = "0.4.29" | ||
| authors = ["The Rust Project Developers"] | ||
@@ -91,2 +91,3 @@ build = false | ||
| release_max_level_warn = [] | ||
| serde = ["serde_core"] | ||
| std = [] | ||
@@ -110,3 +111,3 @@ | ||
| [dependencies.serde] | ||
| [dependencies.serde_core] | ||
| version = "1.0" | ||
@@ -117,3 +118,3 @@ optional = true | ||
| [dependencies.sval] | ||
| version = "2.14.1" | ||
| version = "2.16" | ||
| optional = true | ||
@@ -123,3 +124,3 @@ default-features = false | ||
| [dependencies.sval_ref] | ||
| version = "2.1" | ||
| version = "2.16" | ||
| optional = true | ||
@@ -129,3 +130,3 @@ default-features = false | ||
| [dependencies.value-bag] | ||
| version = "1.7" | ||
| version = "1.12" | ||
| features = ["inline-i128"] | ||
@@ -150,9 +151,9 @@ optional = true | ||
| [dev-dependencies.sval] | ||
| version = "2.1" | ||
| version = "2.16" | ||
| [dev-dependencies.sval_derive] | ||
| version = "2.1" | ||
| version = "2.16" | ||
| [dev-dependencies.value-bag] | ||
| version = "1.7" | ||
| version = "1.12" | ||
| features = ["test"] |
+14
-1
@@ -5,2 +5,14 @@ # Change Log | ||
| ## [0.4.29] - 2025-12-02 | ||
| ## What's Changed | ||
| * perf: reduce llvm-lines of FromStr for `Level` and `LevelFilter` by @dishmaker in https://github.com/rust-lang/log/pull/709 | ||
| * Replace serde with serde_core by @Thomasdezeeuw in https://github.com/rust-lang/log/pull/712 | ||
| ## New Contributors | ||
| * @AldaronLau made their first contribution in https://github.com/rust-lang/log/pull/703 | ||
| * @dishmaker made their first contribution in https://github.com/rust-lang/log/pull/709 | ||
| **Full Changelog**: https://github.com/rust-lang/log/compare/0.4.28...0.4.29 | ||
| ## [0.4.28] - 2025-09-02 | ||
@@ -381,3 +393,4 @@ | ||
| [Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.28...HEAD | ||
| [Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.29...HEAD | ||
| [0.4.29]: https://github.com/rust-lang/log/compare/0.4.28...0.4.29 | ||
| [0.4.28]: https://github.com/rust-lang/log/compare/0.4.27...0.4.28 | ||
@@ -384,0 +397,0 @@ [0.4.27]: https://github.com/rust-lang/log/compare/0.4.26...0.4.27 |
@@ -145,3 +145,3 @@ //! WARNING: this is not part of the crate's public API and is subject to change at any time | ||
| #[cfg(feature = "kv_serde")] | ||
| pub fn capture_serde<'a, V: serde::Serialize + ?Sized>(v: &'a &'a V) -> Value<'a> { | ||
| pub fn capture_serde<'a, V: serde_core::Serialize + ?Sized>(v: &'a &'a V) -> Value<'a> { | ||
| Value::from_serde(v) | ||
@@ -148,0 +148,0 @@ } |
+9
-8
@@ -9,10 +9,10 @@ //! Structured keys. | ||
| /// Perform the conversion. | ||
| fn to_key(&self) -> Key; | ||
| fn to_key(&self) -> Key<'_>; | ||
| } | ||
| impl<'a, T> ToKey for &'a T | ||
| impl<T> ToKey for &T | ||
| where | ||
| T: ToKey + ?Sized, | ||
| { | ||
| fn to_key(&self) -> Key { | ||
| fn to_key(&self) -> Key<'_> { | ||
| (**self).to_key() | ||
@@ -23,3 +23,3 @@ } | ||
| impl<'k> ToKey for Key<'k> { | ||
| fn to_key(&self) -> Key { | ||
| fn to_key(&self) -> Key<'_> { | ||
| Key { key: self.key } | ||
@@ -30,3 +30,3 @@ } | ||
| impl ToKey for str { | ||
| fn to_key(&self) -> Key { | ||
| fn to_key(&self) -> Key<'_> { | ||
| Key::from_str(self) | ||
@@ -47,2 +47,3 @@ } | ||
| /// Get a key from a borrowed string. | ||
| #[allow(clippy::should_implement_trait)] // Part of the public API now. | ||
| pub fn from_str(key: &'k str) -> Self { | ||
@@ -103,3 +104,3 @@ Key { key } | ||
| impl ToKey for String { | ||
| fn to_key(&self) -> Key { | ||
| fn to_key(&self) -> Key<'_> { | ||
| Key::from_str(self) | ||
@@ -110,3 +111,3 @@ } | ||
| impl<'a> ToKey for Cow<'a, str> { | ||
| fn to_key(&self) -> Key { | ||
| fn to_key(&self) -> Key<'_> { | ||
| Key::from_str(self) | ||
@@ -144,3 +145,3 @@ } | ||
| use serde::{Serialize, Serializer}; | ||
| use serde_core::{Serialize, Serializer}; | ||
@@ -147,0 +148,0 @@ impl<'a> Serialize for Key<'a> { |
+1
-1
@@ -194,3 +194,3 @@ //! Structured logging. | ||
| //! # fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
| //! # #[cfg(feature = "serde")] | ||
| //! # #[cfg(feature = "kv_serde")] | ||
| //! # { | ||
@@ -197,0 +197,0 @@ //! # use log::kv::Key; |
+2
-1
@@ -130,3 +130,3 @@ //! Sources for key-values. | ||
| impl<'a, T> Source for &'a T | ||
| impl<T> Source for &T | ||
| where | ||
@@ -241,2 +241,3 @@ T: Source + ?Sized, | ||
| #[allow(clippy::needless_lifetimes)] // Not needless. | ||
| impl<'a, 'kvs, T> VisitSource<'kvs> for &'a mut T | ||
@@ -243,0 +244,0 @@ where |
+19
-18
@@ -13,10 +13,10 @@ //! Structured values. | ||
| /// Perform the conversion. | ||
| fn to_value(&self) -> Value; | ||
| fn to_value(&self) -> Value<'_>; | ||
| } | ||
| impl<'a, T> ToValue for &'a T | ||
| impl<T> ToValue for &T | ||
| where | ||
| T: ToValue + ?Sized, | ||
| { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| (**self).to_value() | ||
@@ -27,3 +27,3 @@ } | ||
| impl<'v> ToValue for Value<'v> { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| Value { | ||
@@ -158,3 +158,3 @@ inner: self.inner.clone(), | ||
| where | ||
| T: serde::Serialize, | ||
| T: serde_core::Serialize, | ||
| { | ||
@@ -238,6 +238,6 @@ Value { | ||
| #[cfg(feature = "kv_serde")] | ||
| impl<'v> serde::Serialize for Value<'v> { | ||
| impl<'v> serde_core::Serialize for Value<'v> { | ||
| fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error> | ||
| where | ||
| S: serde::Serializer, | ||
| S: serde_core::Serializer, | ||
| { | ||
@@ -263,3 +263,3 @@ self.inner.serialize(s) | ||
| impl ToValue for str { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| Value::from(self) | ||
@@ -276,3 +276,3 @@ } | ||
| impl ToValue for () { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| Value::from_inner(()) | ||
@@ -286,3 +286,3 @@ } | ||
| { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| match *self { | ||
@@ -299,3 +299,3 @@ Some(ref value) => value.to_value(), | ||
| impl ToValue for $into_ty { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| Value::from(*self) | ||
@@ -324,3 +324,3 @@ } | ||
| impl ToValue for std::num::$into_ty { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| Value::from(self.get()) | ||
@@ -410,3 +410,3 @@ } | ||
| { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| (**self).to_value() | ||
@@ -420,3 +420,3 @@ } | ||
| { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| (**self).to_value() | ||
@@ -430,3 +430,3 @@ } | ||
| { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| (**self).to_value() | ||
@@ -437,3 +437,3 @@ } | ||
| impl ToValue for String { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| Value::from(&**self) | ||
@@ -444,3 +444,3 @@ } | ||
| impl<'v> ToValue for Cow<'v, str> { | ||
| fn to_value(&self) -> Value { | ||
| fn to_value(&self) -> Value<'_> { | ||
| Value::from(&**self) | ||
@@ -552,2 +552,3 @@ } | ||
| #[allow(clippy::needless_lifetimes)] // Not needless. | ||
| impl<'a, 'v, T: ?Sized> VisitValue<'v> for &'a mut T | ||
@@ -1101,3 +1102,3 @@ where | ||
| where | ||
| T: serde::Serialize + 'static, | ||
| T: serde_core::Serialize + 'static, | ||
| { | ||
@@ -1104,0 +1105,0 @@ Value::from_serde(value) |
+3
-3
@@ -1,8 +0,8 @@ | ||
| #![cfg(feature = "serde")] | ||
| #![cfg(feature = "serde_core")] | ||
| use serde::de::{ | ||
| use serde_core::de::{ | ||
| Deserialize, DeserializeSeed, Deserializer, EnumAccess, Error, Unexpected, VariantAccess, | ||
| Visitor, | ||
| }; | ||
| use serde::ser::{Serialize, Serializer}; | ||
| use serde_core::ser::{Serialize, Serializer}; | ||
@@ -9,0 +9,0 @@ use crate::{Level, LevelFilter, LOG_LEVEL_NAMES}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display