Skip to content

Commit 92ae7ad

Browse files
authored
Bump version to 3.13.0 (#855)
2 parents d75e9fb + b14b17b commit 92ae7ad

File tree

8 files changed

+48
-39
lines changed

8 files changed

+48
-39
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
1212
readme = "README.md"
1313
repository = "https://github.com/jonasbb/serde_with/"
1414
rust-version = "1.74"
15-
version = "3.12.0"
15+
version = "3.13.0"
1616

1717
[workspace.metadata.release]
1818
consolidate-commits = true

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ Foo::Bytes {
183183
}
184184
```
185185

186-
[`DisplayFromStr`]: https://docs.rs/serde_with/3.12.0/serde_with/struct.DisplayFromStr.html
187-
[`with_prefix!`]: https://docs.rs/serde_with/3.12.0/serde_with/macro.with_prefix.html
188-
[`with_suffix!`]: https://docs.rs/serde_with/3.12.0/serde_with/macro.with_suffix.html
189-
[feature flags]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
190-
[skip_serializing_none]: https://docs.rs/serde_with/3.12.0/serde_with/attr.skip_serializing_none.html
191-
[StringWithSeparator]: https://docs.rs/serde_with/3.12.0/serde_with/struct.StringWithSeparator.html
192-
[user guide]: https://docs.rs/serde_with/3.12.0/serde_with/guide/index.html
186+
[`DisplayFromStr`]: https://docs.rs/serde_with/3.13.0/serde_with/struct.DisplayFromStr.html
187+
[`with_prefix!`]: https://docs.rs/serde_with/3.13.0/serde_with/macro.with_prefix.html
188+
[`with_suffix!`]: https://docs.rs/serde_with/3.13.0/serde_with/macro.with_suffix.html
189+
[feature flags]: https://docs.rs/serde_with/3.13.0/serde_with/guide/feature_flags/index.html
190+
[skip_serializing_none]: https://docs.rs/serde_with/3.13.0/serde_with/attr.skip_serializing_none.html
191+
[StringWithSeparator]: https://docs.rs/serde_with/3.13.0/serde_with/struct.StringWithSeparator.html
192+
[user guide]: https://docs.rs/serde_with/3.13.0/serde_with/guide/index.html
193193
[with-annotation]: https://serde.rs/field-attrs.html#with
194-
[as-annotation]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html
194+
[as-annotation]: https://docs.rs/serde_with/3.13.0/serde_with/guide/serde_as/index.html
195195

196196
## License
197197

serde_with/CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [3.13.0] - 2025-06-14
11+
12+
### Added
13+
14+
* Added support for `schemars` v0.9.0 under the `schemars_0_9` feature flag by @swlynch99 (#849)
15+
* Introduce `SerializeDisplayAlt` derive macro (#833)
16+
An alternative to the `SerializeDisplay` macro except instead of using the
17+
plain formatting like `format!("{}", ...)`, it serializes with the
18+
`Formatter::alternate` flag set to true, like `format!("{:#}", ...)`
19+
1020
### Changed
1121

1222
* Generalize `serde_with::rust::unwrap_or_skip` to support deserializing references by @beroal (#832)
@@ -18,10 +28,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1828

1929
* Make the `DurationSeconds` types and other variants more accessible even without `std` (#845)
2030

21-
### Added
22-
23-
* Added support for `schemars` v0.9.0 under the `schemars_0_9` feature flag by @swlynch99 (#849)
24-
2531
## [3.12.0] - 2024-12-25
2632

2733
### Added

serde_with/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ schemars_0_9 = { package = "schemars", version = "0.9.0", optional = true, defau
149149
serde = { version = "1.0.152", default-features = false }
150150
serde_derive = "1.0.152"
151151
serde_json = { version = "1.0.45", optional = true, default-features = false }
152-
serde_with_macros = { path = "../serde_with_macros", version = "=3.12.0", optional = true }
152+
serde_with_macros = { path = "../serde_with_macros", version = "=3.13.0", optional = true }
153153
time_0_3 = { package = "time", version = "~0.3.36", optional = true, default-features = false }
154154

155155
[dev-dependencies]

serde_with/src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)))]
2222
// Not needed for 2018 edition and conflicts with `rust_2018_idioms`
2323
#![doc(test(no_crate_inject))]
24-
#![doc(html_root_url = "https://docs.rs/serde_with/3.12.0/")]
24+
#![doc(html_root_url = "https://docs.rs/serde_with/3.13.0/")]
2525
#![cfg_attr(docsrs, feature(doc_cfg))]
2626
#![no_std]
2727

@@ -257,15 +257,15 @@
257257
//! # }
258258
//! ```
259259
//!
260-
//! [`DisplayFromStr`]: https://docs.rs/serde_with/3.12.0/serde_with/struct.DisplayFromStr.html
261-
//! [`with_prefix!`]: https://docs.rs/serde_with/3.12.0/serde_with/macro.with_prefix.html
262-
//! [`with_suffix!`]: https://docs.rs/serde_with/3.12.0/serde_with/macro.with_suffix.html
263-
//! [feature flags]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
264-
//! [skip_serializing_none]: https://docs.rs/serde_with/3.12.0/serde_with/attr.skip_serializing_none.html
265-
//! [StringWithSeparator]: https://docs.rs/serde_with/3.12.0/serde_with/struct.StringWithSeparator.html
266-
//! [user guide]: https://docs.rs/serde_with/3.12.0/serde_with/guide/index.html
260+
//! [`DisplayFromStr`]: https://docs.rs/serde_with/3.13.0/serde_with/struct.DisplayFromStr.html
261+
//! [`with_prefix!`]: https://docs.rs/serde_with/3.13.0/serde_with/macro.with_prefix.html
262+
//! [`with_suffix!`]: https://docs.rs/serde_with/3.13.0/serde_with/macro.with_suffix.html
263+
//! [feature flags]: https://docs.rs/serde_with/3.13.0/serde_with/guide/feature_flags/index.html
264+
//! [skip_serializing_none]: https://docs.rs/serde_with/3.13.0/serde_with/attr.skip_serializing_none.html
265+
//! [StringWithSeparator]: https://docs.rs/serde_with/3.13.0/serde_with/struct.StringWithSeparator.html
266+
//! [user guide]: https://docs.rs/serde_with/3.13.0/serde_with/guide/index.html
267267
//! [with-annotation]: https://serde.rs/field-attrs.html#with
268-
//! [as-annotation]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html
268+
//! [as-annotation]: https://docs.rs/serde_with/3.13.0/serde_with/guide/serde_as/index.html
269269
270270
#[cfg(feature = "alloc")]
271271
extern crate alloc;
@@ -495,7 +495,7 @@ pub use serde_with_macros::*;
495495
/// # }
496496
/// ```
497497
///
498-
/// [serde_as]: https://docs.rs/serde_with/3.12.0/serde_with/attr.serde_as.html
498+
/// [serde_as]: https://docs.rs/serde_with/3.13.0/serde_with/attr.serde_as.html
499499
pub struct As<T: ?Sized>(PhantomData<T>);
500500

501501
/// Adapter to convert from `serde_as` to the serde traits.
@@ -970,7 +970,7 @@ pub struct BytesOrString;
970970
/// ```
971971
///
972972
/// [`chrono::Duration`]: ::chrono_0_4::Duration
973-
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
973+
/// [feature flag]: https://docs.rs/serde_with/3.13.0/serde_with/guide/feature_flags/index.html
974974
pub struct DurationSeconds<
975975
FORMAT: formats::Format = u64,
976976
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1102,7 +1102,7 @@ pub struct DurationSeconds<
11021102
/// ```
11031103
///
11041104
/// [`chrono::Duration`]: ::chrono_0_4::Duration
1105-
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
1105+
/// [feature flag]: https://docs.rs/serde_with/3.13.0/serde_with/guide/feature_flags/index.html
11061106
pub struct DurationSecondsWithFrac<
11071107
FORMAT: formats::Format = f64,
11081108
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1304,7 +1304,7 @@ pub struct DurationNanoSecondsWithFrac<
13041304
/// [`SystemTime`]: std::time::SystemTime
13051305
/// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
13061306
/// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
1307-
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
1307+
/// [feature flag]: https://docs.rs/serde_with/3.13.0/serde_with/guide/feature_flags/index.html
13081308
pub struct TimestampSeconds<
13091309
FORMAT: formats::Format = i64,
13101310
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1446,7 +1446,7 @@ pub struct TimestampSeconds<
14461446
/// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
14471447
/// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
14481448
/// [NaiveDateTime]: ::chrono_0_4::NaiveDateTime
1449-
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
1449+
/// [feature flag]: https://docs.rs/serde_with/3.13.0/serde_with/guide/feature_flags/index.html
14501450
pub struct TimestampSecondsWithFrac<
14511451
FORMAT: formats::Format = f64,
14521452
STRICTNESS: formats::Strictness = formats::Strict,

serde_with_macros/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [3.13.0] - 2025-06-14
11+
1012
### Added
13+
1114
* Introduce `SerializeDisplayAlt` derive macro (#833)
1215
An alternative to the `SerializeDisplay` macro except instead of using the
1316
plain formatting like `format!("{}", ...)`, it serializes with the

serde_with_macros/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
)))]
2121
// Not needed for 2018 edition and conflicts with `rust_2018_idioms`
2222
#![doc(test(no_crate_inject))]
23-
#![doc(html_root_url = "https://docs.rs/serde_with_macros/3.12.0/")]
23+
#![doc(html_root_url = "https://docs.rs/serde_with_macros/3.13.0/")]
2424
// Tarpaulin does not work well with proc macros and marks most of the lines as uncovered.
2525
#![cfg(not(tarpaulin_include))]
2626

@@ -589,8 +589,8 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool {
589589
/// It will also work if the relevant derive is behind a `#[cfg_attr]` attribute
590590
/// and propagate the `#[cfg_attr]` to the various `#[schemars]` field attributes.
591591
///
592-
/// [`serde_as`]: https://docs.rs/serde_with/3.12.0/serde_with/guide/index.html
593-
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
592+
/// [`serde_as`]: https://docs.rs/serde_with/3.13.0/serde_with/guide/index.html
593+
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/3.13.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
594594
#[proc_macro_attribute]
595595
pub fn serde_as(args: TokenStream, input: TokenStream) -> TokenStream {
596596
#[derive(FromMeta)]
@@ -1055,7 +1055,7 @@ fn has_type_embedded(type_: &Type, embedded_type: &syn::Ident) -> bool {
10551055
/// [`Display`]: std::fmt::Display
10561056
/// [`FromStr`]: std::str::FromStr
10571057
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
1058-
/// [serde-as-crate]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
1058+
/// [serde-as-crate]: https://docs.rs/serde_with/3.13.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
10591059
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
10601060
#[proc_macro_derive(DeserializeFromStr, attributes(serde_with))]
10611061
pub fn derive_deserialize_fromstr(item: TokenStream) -> TokenStream {
@@ -1175,7 +1175,7 @@ fn deserialize_fromstr(mut input: DeriveInput, serde_with_crate_path: Path) -> T
11751175
/// [`Display`]: std::fmt::Display
11761176
/// [`FromStr`]: std::str::FromStr
11771177
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
1178-
/// [serde-as-crate]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
1178+
/// [serde-as-crate]: https://docs.rs/serde_with/3.13.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
11791179
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
11801180
#[proc_macro_derive(SerializeDisplay, attributes(serde_with))]
11811181
pub fn derive_serialize_display(item: TokenStream) -> TokenStream {
@@ -1213,9 +1213,9 @@ pub fn derive_serialize_display(item: TokenStream) -> TokenStream {
12131213
/// You may customize which `serde_with` crate is used (for renamed or re-exported crates)
12141214
/// via the same attribute namespace:
12151215
///
1216-
/// * `#[serde_with(crate = "...")]`
1216+
/// * `#[serde_with(crate = "...")]`
12171217
/// When your workspace renames or re-exports `serde_with`, use this to point at the correct path.
1218-
/// For example:
1218+
/// For example:
12191219
/// ```rust,ignore
12201220
/// #[derive(SerializeDisplayAlt)]
12211221
/// #[serde_with(crate = "my_forked_serde_with")]
@@ -1249,8 +1249,8 @@ pub fn derive_serialize_display(item: TokenStream) -> TokenStream {
12491249
/// assert_eq!(r#""0xF""#, serde_json::to_string(&v).unwrap());
12501250
/// ```
12511251
///
1252-
/// [`Display`]: std::fmt::Display
1253-
/// [`FromStr`]: std::str::FromStr
1252+
/// [`Display`]: std::fmt::Display
1253+
/// [`FromStr`]: std::str::FromStr
12541254
/// [`DeserializeFromStr`]: crate::DeserializeFromStr
12551255
#[proc_macro_derive(SerializeDisplayAlt, attributes(serde_with))]
12561256
pub fn derive_serialize_display_alt(item: TokenStream) -> TokenStream {

0 commit comments

Comments
 (0)