diff --git a/Cargo.lock b/Cargo.lock index 45efdcb7..8343246f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -557,7 +557,7 @@ dependencies = [ [[package]] name = "serde_with" -version = "2.3.0" +version = "2.3.1" dependencies = [ "base64", "chrono", @@ -585,7 +585,7 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "2.3.0" +version = "2.3.1" dependencies = [ "darling", "expect-test", diff --git a/README.md b/README.md index 43392fa7..004d287a 100644 --- a/README.md +++ b/README.md @@ -176,14 +176,14 @@ Foo::Bytes { } ``` -[`DisplayFromStr`]: https://docs.rs/serde_with/2.3.0/serde_with/struct.DisplayFromStr.html -[`with_prefix!`]: https://docs.rs/serde_with/2.3.0/serde_with/macro.with_prefix.html -[feature flags]: https://docs.rs/serde_with/2.3.0/serde_with/guide/feature_flags/index.html -[skip_serializing_none]: https://docs.rs/serde_with/2.3.0/serde_with/attr.skip_serializing_none.html -[StringWithSeparator]: https://docs.rs/serde_with/2.3.0/serde_with/struct.StringWithSeparator.html -[user guide]: https://docs.rs/serde_with/2.3.0/serde_with/guide/index.html +[`DisplayFromStr`]: https://docs.rs/serde_with/2.3.1/serde_with/struct.DisplayFromStr.html +[`with_prefix!`]: https://docs.rs/serde_with/2.3.1/serde_with/macro.with_prefix.html +[feature flags]: https://docs.rs/serde_with/2.3.1/serde_with/guide/feature_flags/index.html +[skip_serializing_none]: https://docs.rs/serde_with/2.3.1/serde_with/attr.skip_serializing_none.html +[StringWithSeparator]: https://docs.rs/serde_with/2.3.1/serde_with/struct.StringWithSeparator.html +[user guide]: https://docs.rs/serde_with/2.3.1/serde_with/guide/index.html [with-annotation]: https://serde.rs/field-attrs.html#with -[as-annotation]: https://docs.rs/serde_with/2.3.0/serde_with/guide/serde_as/index.html +[as-annotation]: https://docs.rs/serde_with/2.3.1/serde_with/guide/serde_as/index.html ## License diff --git a/serde_with/CHANGELOG.md b/serde_with/CHANGELOG.md index 7accb38e..23a7f446 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] +## [2.3.1] - 2023-03-10 + ### Fixed * Undo the changes to the trait bound for `Seq`. (#570, #571) diff --git a/serde_with/Cargo.toml b/serde_with/Cargo.toml index 9c573528..969dd049 100644 --- a/serde_with/Cargo.toml +++ b/serde_with/Cargo.toml @@ -6,7 +6,7 @@ authors = [ ] name = "serde_with" rust-version = "1.60" -version = "2.3.0" +version = "2.3.1" categories = ["encoding", "no-std"] description = "Custom de/serialization functions for Rust's serde" @@ -67,7 +67,7 @@ hex = {version = "0.4.3", optional = true, default-features = false} indexmap_1 = {package = "indexmap", version = "1.8", optional = true, default-features = false, features = ["serde-1"]} serde = {version = "1.0.122", default-features = false, features = ["derive"]} serde_json = {version = "1.0.45", optional = true, default-features = false} -serde_with_macros = {path = "../serde_with_macros", version = "=2.3.0", optional = true} +serde_with_macros = {path = "../serde_with_macros", version = "=2.3.1", optional = true} time_0_3 = {package = "time", version = "~0.3.11", optional = true, default-features = false} [dev-dependencies] diff --git a/serde_with/src/lib.rs b/serde_with/src/lib.rs index 91092ab1..42eb4272 100644 --- a/serde_with/src/lib.rs +++ b/serde_with/src/lib.rs @@ -26,7 +26,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/2.3.0/")] +#![doc(html_root_url = "https://docs.rs/serde_with/2.3.1/")] #![cfg_attr(docsrs, feature(doc_cfg))] #![allow( // clippy is broken and shows wrong warnings @@ -275,14 +275,14 @@ //! # } //! ``` //! -//! [`DisplayFromStr`]: https://docs.rs/serde_with/2.3.0/serde_with/struct.DisplayFromStr.html -//! [`with_prefix!`]: https://docs.rs/serde_with/2.3.0/serde_with/macro.with_prefix.html -//! [feature flags]: https://docs.rs/serde_with/2.3.0/serde_with/guide/feature_flags/index.html -//! [skip_serializing_none]: https://docs.rs/serde_with/2.3.0/serde_with/attr.skip_serializing_none.html -//! [StringWithSeparator]: https://docs.rs/serde_with/2.3.0/serde_with/struct.StringWithSeparator.html -//! [user guide]: https://docs.rs/serde_with/2.3.0/serde_with/guide/index.html +//! [`DisplayFromStr`]: https://docs.rs/serde_with/2.3.1/serde_with/struct.DisplayFromStr.html +//! [`with_prefix!`]: https://docs.rs/serde_with/2.3.1/serde_with/macro.with_prefix.html +//! [feature flags]: https://docs.rs/serde_with/2.3.1/serde_with/guide/feature_flags/index.html +//! [skip_serializing_none]: https://docs.rs/serde_with/2.3.1/serde_with/attr.skip_serializing_none.html +//! [StringWithSeparator]: https://docs.rs/serde_with/2.3.1/serde_with/struct.StringWithSeparator.html +//! [user guide]: https://docs.rs/serde_with/2.3.1/serde_with/guide/index.html //! [with-annotation]: https://serde.rs/field-attrs.html#with -//! [as-annotation]: https://docs.rs/serde_with/2.3.0/serde_with/guide/serde_as/index.html +//! [as-annotation]: https://docs.rs/serde_with/2.3.1/serde_with/guide/serde_as/index.html #[cfg(feature = "alloc")] extern crate alloc; @@ -481,7 +481,7 @@ pub use serde_with_macros::*; /// # } /// ``` /// -/// [serde_as]: https://docs.rs/serde_with/2.3.0/serde_with/attr.serde_as.html +/// [serde_as]: https://docs.rs/serde_with/2.3.1/serde_with/attr.serde_as.html pub struct As(PhantomData); /// Adapter to convert from `serde_as` to the serde traits. @@ -909,7 +909,7 @@ pub struct BytesOrString; /// ``` /// /// [`chrono::Duration`]: ::chrono_0_4::Duration -/// [feature flag]: https://docs.rs/serde_with/2.3.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/2.3.1/serde_with/guide/feature_flags/index.html pub struct DurationSeconds< FORMAT: formats::Format = u64, STRICTNESS: formats::Strictness = formats::Strict, @@ -1037,7 +1037,7 @@ pub struct DurationSeconds< /// ``` /// /// [`chrono::Duration`]: ::chrono_0_4::Duration -/// [feature flag]: https://docs.rs/serde_with/2.3.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/2.3.1/serde_with/guide/feature_flags/index.html pub struct DurationSecondsWithFrac< FORMAT: formats::Format = f64, STRICTNESS: formats::Strictness = formats::Strict, @@ -1233,7 +1233,7 @@ pub struct DurationNanoSecondsWithFrac< /// [`SystemTime`]: std::time::SystemTime /// [`chrono::DateTime`]: ::chrono_0_4::DateTime /// [`chrono::DateTime`]: ::chrono_0_4::DateTime -/// [feature flag]: https://docs.rs/serde_with/2.3.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/2.3.1/serde_with/guide/feature_flags/index.html pub struct TimestampSeconds< FORMAT: formats::Format = i64, STRICTNESS: formats::Strictness = formats::Strict, @@ -1371,7 +1371,7 @@ pub struct TimestampSeconds< /// [`chrono::DateTime`]: ::chrono_0_4::DateTime /// [`chrono::DateTime`]: ::chrono_0_4::DateTime /// [NaiveDateTime]: ::chrono_0_4::NaiveDateTime -/// [feature flag]: https://docs.rs/serde_with/2.3.0/serde_with/guide/feature_flags/index.html +/// [feature flag]: https://docs.rs/serde_with/2.3.1/serde_with/guide/feature_flags/index.html pub struct TimestampSecondsWithFrac< FORMAT: formats::Format = f64, STRICTNESS: formats::Strictness = formats::Strict, diff --git a/serde_with_macros/CHANGELOG.md b/serde_with_macros/CHANGELOG.md index cca0bd99..8995caf5 100644 --- a/serde_with_macros/CHANGELOG.md +++ b/serde_with_macros/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.3.1] - 2023-03-10 + +No changes. + ## [2.3.0] - 2023-03-09 No changes. diff --git a/serde_with_macros/Cargo.toml b/serde_with_macros/Cargo.toml index 0713008c..2f19d506 100644 --- a/serde_with_macros/Cargo.toml +++ b/serde_with_macros/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Jonas Bushart"] name = "serde_with_macros" rust-version = "1.60" -version = "2.3.0" +version = "2.3.1" categories = ["encoding"] description = "proc-macro library for serde_with" diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index 3c9607f6..cf2217fb 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -26,7 +26,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_macros/2.3.0/")] +#![doc(html_root_url = "https://docs.rs/serde_with_macros/2.3.1/")] // Necessary to silence the warning about clippy::unknown_clippy_lints on nightly #![allow(renamed_and_removed_lints)] // Necessary for nightly clippy lints @@ -578,8 +578,8 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool { /// } /// ``` /// -/// [`serde_as`]: https://docs.rs/serde_with/2.3.0/serde_with/guide/index.html -/// [re-exporting `serde_as`]: https://docs.rs/serde_with/2.3.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as +/// [`serde_as`]: https://docs.rs/serde_with/2.3.1/serde_with/guide/index.html +/// [re-exporting `serde_as`]: https://docs.rs/serde_with/2.3.1/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)] @@ -969,7 +969,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/2.3.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as +/// [serde-as-crate]: https://docs.rs/serde_with/2.3.1/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 { @@ -1089,7 +1089,7 @@ fn deserialize_fromstr(mut input: DeriveInput, serde_with_crate_path: Path) -> T /// [`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/2.3.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as +/// [serde-as-crate]: https://docs.rs/serde_with/2.3.1/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 {