From 4a3b3801fa89ce6b9887bba4495c7bf69acaa450 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Mon, 7 Feb 2022 21:30:31 +0100 Subject: [PATCH] Bump serde_with to 1.12.0 --- README.md | 18 +++++++++--------- serde_with/CHANGELOG.md | 2 ++ serde_with/Cargo.toml | 2 +- serde_with/src/lib.rs | 30 +++++++++++++++--------------- serde_with_macros/src/lib.rs | 8 ++++---- 5 files changed, 31 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 8dbed011..6c6bea76 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Add this to your `Cargo.toml`: ```toml [dependencies.serde_with] -version = "1.11.0" +version = "1.12.0" features = [ "..." ] ``` @@ -156,15 +156,15 @@ Foo { } ``` -[`DisplayFromStr`]: https://docs.rs/serde_with/1.11.0/serde_with/struct.DisplayFromStr.html -[`with_prefix!`]: https://docs.rs/serde_with/1.11.0/serde_with/macro.with_prefix.html -[display_fromstr]: https://docs.rs/serde_with/1.11.0/serde_with/rust/display_fromstr/index.html -[feature flags]: https://docs.rs/serde_with/1.11.0/serde_with/guide/feature_flags/index.html -[skip_serializing_none]: https://docs.rs/serde_with/1.11.0/serde_with/attr.skip_serializing_none.html -[StringWithSeparator]: https://docs.rs/serde_with/1.11.0/serde_with/rust/struct.StringWithSeparator.html -[user guide]: https://docs.rs/serde_with/1.11.0/serde_with/guide/index.html +[`DisplayFromStr`]: https://docs.rs/serde_with/1.12.0/serde_with/struct.DisplayFromStr.html +[`with_prefix!`]: https://docs.rs/serde_with/1.12.0/serde_with/macro.with_prefix.html +[display_fromstr]: https://docs.rs/serde_with/1.12.0/serde_with/rust/display_fromstr/index.html +[feature flags]: https://docs.rs/serde_with/1.12.0/serde_with/guide/feature_flags/index.html +[skip_serializing_none]: https://docs.rs/serde_with/1.12.0/serde_with/attr.skip_serializing_none.html +[StringWithSeparator]: https://docs.rs/serde_with/1.12.0/serde_with/rust/struct.StringWithSeparator.html +[user guide]: https://docs.rs/serde_with/1.12.0/serde_with/guide/index.html [with-annotation]: https://serde.rs/field-attrs.html#with -[as-annotation]: https://docs.rs/serde_with/1.11.0/serde_with/guide/serde_as/index.html +[as-annotation]: https://docs.rs/serde_with/1.12.0/serde_with/guide/serde_as/index.html ## License diff --git a/serde_with/CHANGELOG.md b/serde_with/CHANGELOG.md index 65e591d5..013fbc3d 100644 --- a/serde_with/CHANGELOG.md +++ b/serde_with/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.12.0] - 2022-02-07 + ## Added * Deserialize a `Vec` and skip all elements failing to deserialize #383 diff --git a/serde_with/Cargo.toml b/serde_with/Cargo.toml index 66ff7ae5..744af982 100644 --- a/serde_with/Cargo.toml +++ b/serde_with/Cargo.toml @@ -5,7 +5,7 @@ authors = [ "Marcin Kaźmierczak", ] name = "serde_with" -version = "1.11.0" +version = "1.12.0" rust-version = "1.46" categories = ["encoding"] diff --git a/serde_with/src/lib.rs b/serde_with/src/lib.rs index cfd5db39..f0a1804c 100644 --- a/serde_with/src/lib.rs +++ b/serde_with/src/lib.rs @@ -25,7 +25,7 @@ #![doc(test(attr(warn(rust_2018_idioms))))] // Not needed for 2018 edition and conflicts with `rust_2018_idioms` #![doc(test(no_crate_inject))] -#![doc(html_root_url = "https://docs.rs/serde_with/1.11.0")] +#![doc(html_root_url = "https://docs.rs/serde_with/1.12.0")] #![cfg_attr(docsrs, feature(doc_cfg))] //! [![crates.io badge](https://img.shields.io/crates/v/serde_with.svg)](https://crates.io/crates/serde_with/) @@ -62,7 +62,7 @@ //! //! ```toml //! [dependencies.serde_with] -//! version = "1.11.0" +//! version = "1.12.0" //! features = [ "..." ] //! ``` //! @@ -239,15 +239,15 @@ //! # } //! ``` //! -//! [`DisplayFromStr`]: https://docs.rs/serde_with/1.11.0/serde_with/struct.DisplayFromStr.html -//! [`with_prefix!`]: https://docs.rs/serde_with/1.11.0/serde_with/macro.with_prefix.html -//! [display_fromstr]: https://docs.rs/serde_with/1.11.0/serde_with/rust/display_fromstr/index.html -//! [feature flags]: https://docs.rs/serde_with/1.11.0/serde_with/guide/feature_flags/index.html -//! [skip_serializing_none]: https://docs.rs/serde_with/1.11.0/serde_with/attr.skip_serializing_none.html -//! [StringWithSeparator]: https://docs.rs/serde_with/1.11.0/serde_with/rust/struct.StringWithSeparator.html -//! [user guide]: https://docs.rs/serde_with/1.11.0/serde_with/guide/index.html +//! [`DisplayFromStr`]: https://docs.rs/serde_with/1.12.0/serde_with/struct.DisplayFromStr.html +//! [`with_prefix!`]: https://docs.rs/serde_with/1.12.0/serde_with/macro.with_prefix.html +//! [display_fromstr]: https://docs.rs/serde_with/1.12.0/serde_with/rust/display_fromstr/index.html +//! [feature flags]: https://docs.rs/serde_with/1.12.0/serde_with/guide/feature_flags/index.html +//! [skip_serializing_none]: https://docs.rs/serde_with/1.12.0/serde_with/attr.skip_serializing_none.html +//! [StringWithSeparator]: https://docs.rs/serde_with/1.12.0/serde_with/rust/struct.StringWithSeparator.html +//! [user guide]: https://docs.rs/serde_with/1.12.0/serde_with/guide/index.html //! [with-annotation]: https://serde.rs/field-attrs.html#with -//! [as-annotation]: https://docs.rs/serde_with/1.11.0/serde_with/guide/serde_as/index.html +//! [as-annotation]: https://docs.rs/serde_with/1.12.0/serde_with/guide/serde_as/index.html #[doc(hidden)] pub extern crate serde; @@ -395,7 +395,7 @@ impl Separator for CommaSeparator { /// # } /// ``` /// -/// [serde_as]: https://docs.rs/serde_with/1.11.0/serde_with/attr.serde_as.html +/// [serde_as]: https://docs.rs/serde_with/1.12.0/serde_with/attr.serde_as.html #[derive(Copy, Clone, Debug, Default)] pub struct As(PhantomData); @@ -861,7 +861,7 @@ pub struct BytesOrString; /// ``` /// /// [`chrono::Duration`]: chrono_crate::Duration -/// [feature flag]: https://docs.rs/serde_with/1.11.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/1.12.0/serde_with/guide/feature_flags/index.html #[derive(Copy, Clone, Debug, Default)] pub struct DurationSeconds< FORMAT: formats::Format = u64, @@ -987,7 +987,7 @@ pub struct DurationSeconds< /// ``` /// /// [`chrono::Duration`]: chrono_crate::Duration -/// [feature flag]: https://docs.rs/serde_with/1.11.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/1.12.0/serde_with/guide/feature_flags/index.html #[derive(Copy, Clone, Debug, Default)] pub struct DurationSecondsWithFrac< FORMAT: formats::Format = f64, @@ -1184,7 +1184,7 @@ pub struct DurationNanoSecondsWithFrac< /// /// [`SystemTime`]: std::time::SystemTime /// [DateTime]: chrono_crate::DateTime -/// [feature flag]: https://docs.rs/serde_with/1.11.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/1.12.0/serde_with/guide/feature_flags/index.html #[derive(Copy, Clone, Debug, Default)] pub struct TimestampSeconds< FORMAT: formats::Format = i64, @@ -1316,7 +1316,7 @@ pub struct TimestampSeconds< /// [`SystemTime`]: std::time::SystemTime /// [DateTime]: chrono_crate::DateTime /// [NaiveDateTime]: chrono_crate::NaiveDateTime -/// [feature flag]: https://docs.rs/serde_with/1.11.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/1.12.0/serde_with/guide/feature_flags/index.html #[derive(Copy, Clone, Debug, Default)] pub struct TimestampSecondsWithFrac< FORMAT: formats::Format = f64, diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index 464cf22e..e0d7815c 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -478,8 +478,8 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool { /// } /// ``` /// -/// [`serde_as`]: https://docs.rs/serde_with/1.11.0/serde_with/guide/index.html -/// [re-exporting `serde_as`]: https://docs.rs/serde_with/1.11.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as +/// [`serde_as`]: https://docs.rs/serde_with/1.12.0/serde_with/guide/index.html +/// [re-exporting `serde_as`]: https://docs.rs/serde_with/1.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as #[proc_macro_attribute] pub fn serde_as(args: TokenStream, input: TokenStream) -> TokenStream { #[derive(FromMeta, Debug)] @@ -860,7 +860,7 @@ fn has_type_embedded(type_: &Type, embedded_type: &syn::Ident) -> bool { /// [`Display`]: std::fmt::Display /// [`FromStr`]: std::str::FromStr /// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml -/// [serde-as-crate]: https://docs.rs/serde_with/1.11.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as +/// [serde-as-crate]: https://docs.rs/serde_with/1.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as /// [serde-crate]: https://serde.rs/container-attrs.html#crate #[proc_macro_derive(DeserializeFromStr, attributes(serde_with))] pub fn derive_deserialize_fromstr(item: TokenStream) -> TokenStream { @@ -970,7 +970,7 @@ fn deserialize_fromstr(input: DeriveInput, serde_with_crate_path: Path) -> Token /// [`Display`]: std::fmt::Display /// [`FromStr`]: std::str::FromStr /// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml -/// [serde-as-crate]: https://docs.rs/serde_with/1.11.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as +/// [serde-as-crate]: https://docs.rs/serde_with/1.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as /// [serde-crate]: https://serde.rs/container-attrs.html#crate #[proc_macro_derive(SerializeDisplay, attributes(serde_with))] pub fn derive_serialize_display(item: TokenStream) -> TokenStream {