Skip to content

Commit 5de3400

Browse files
authored
Bump version to 3.12 and update changelogs (#812)
2 parents f4f784c + 0d36647 commit 5de3400

File tree

8 files changed

+37
-31
lines changed

8 files changed

+37
-31
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.70"
15-
version = "3.11.0"
15+
version = "3.12.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.11.0/serde_with/struct.DisplayFromStr.html
187-
[`with_prefix!`]: https://docs.rs/serde_with/3.11.0/serde_with/macro.with_prefix.html
188-
[`with_suffix!`]: https://docs.rs/serde_with/3.11.0/serde_with/macro.with_suffix.html
189-
[feature flags]: https://docs.rs/serde_with/3.11.0/serde_with/guide/feature_flags/index.html
190-
[skip_serializing_none]: https://docs.rs/serde_with/3.11.0/serde_with/attr.skip_serializing_none.html
191-
[StringWithSeparator]: https://docs.rs/serde_with/3.11.0/serde_with/struct.StringWithSeparator.html
192-
[user guide]: https://docs.rs/serde_with/3.11.0/serde_with/guide/index.html
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
193193
[with-annotation]: https://serde.rs/field-attrs.html#with
194-
[as-annotation]: https://docs.rs/serde_with/3.11.0/serde_with/guide/serde_as/index.html
194+
[as-annotation]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html
195195

196196
## License
197197

serde_with/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [3.12.0] - 2024-12-25
11+
1012
### Added
1113

1214
* Add `with_suffix!` macro, which puts a suffix on every struct field

serde_with/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ schemars_0_8 = { package = "schemars", version = "0.8.16", optional = true, defa
140140
serde = { version = "1.0.152", default-features = false }
141141
serde_derive = "1.0.152"
142142
serde_json = { version = "1.0.45", optional = true, default-features = false }
143-
serde_with_macros = { path = "../serde_with_macros", version = "=3.11.0", optional = true }
143+
serde_with_macros = { path = "../serde_with_macros", version = "=3.12.0", optional = true }
144144
time_0_3 = { package = "time", version = "~0.3.36", optional = true, default-features = false }
145145

146146
[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.11.0/")]
24+
#![doc(html_root_url = "https://docs.rs/serde_with/3.12.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.11.0/serde_with/struct.DisplayFromStr.html
261-
//! [`with_prefix!`]: https://docs.rs/serde_with/3.11.0/serde_with/macro.with_prefix.html
262-
//! [`with_suffix!`]: https://docs.rs/serde_with/3.11.0/serde_with/macro.with_suffix.html
263-
//! [feature flags]: https://docs.rs/serde_with/3.11.0/serde_with/guide/feature_flags/index.html
264-
//! [skip_serializing_none]: https://docs.rs/serde_with/3.11.0/serde_with/attr.skip_serializing_none.html
265-
//! [StringWithSeparator]: https://docs.rs/serde_with/3.11.0/serde_with/struct.StringWithSeparator.html
266-
//! [user guide]: https://docs.rs/serde_with/3.11.0/serde_with/guide/index.html
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
267267
//! [with-annotation]: https://serde.rs/field-attrs.html#with
268-
//! [as-annotation]: https://docs.rs/serde_with/3.11.0/serde_with/guide/serde_as/index.html
268+
//! [as-annotation]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html
269269
270270
#[cfg(feature = "alloc")]
271271
extern crate alloc;
@@ -484,7 +484,7 @@ pub use serde_with_macros::*;
484484
/// # }
485485
/// ```
486486
///
487-
/// [serde_as]: https://docs.rs/serde_with/3.11.0/serde_with/attr.serde_as.html
487+
/// [serde_as]: https://docs.rs/serde_with/3.12.0/serde_with/attr.serde_as.html
488488
pub struct As<T: ?Sized>(PhantomData<T>);
489489

490490
/// Adapter to convert from `serde_as` to the serde traits.
@@ -959,7 +959,7 @@ pub struct BytesOrString;
959959
/// ```
960960
///
961961
/// [`chrono::Duration`]: ::chrono_0_4::Duration
962-
/// [feature flag]: https://docs.rs/serde_with/3.11.0/serde_with/guide/feature_flags/index.html
962+
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
963963
pub struct DurationSeconds<
964964
FORMAT: formats::Format = u64,
965965
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1091,7 +1091,7 @@ pub struct DurationSeconds<
10911091
/// ```
10921092
///
10931093
/// [`chrono::Duration`]: ::chrono_0_4::Duration
1094-
/// [feature flag]: https://docs.rs/serde_with/3.11.0/serde_with/guide/feature_flags/index.html
1094+
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
10951095
pub struct DurationSecondsWithFrac<
10961096
FORMAT: formats::Format = f64,
10971097
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1293,7 +1293,7 @@ pub struct DurationNanoSecondsWithFrac<
12931293
/// [`SystemTime`]: std::time::SystemTime
12941294
/// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
12951295
/// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
1296-
/// [feature flag]: https://docs.rs/serde_with/3.11.0/serde_with/guide/feature_flags/index.html
1296+
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
12971297
pub struct TimestampSeconds<
12981298
FORMAT: formats::Format = i64,
12991299
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1435,7 +1435,7 @@ pub struct TimestampSeconds<
14351435
/// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
14361436
/// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
14371437
/// [NaiveDateTime]: ::chrono_0_4::NaiveDateTime
1438-
/// [feature flag]: https://docs.rs/serde_with/3.11.0/serde_with/guide/feature_flags/index.html
1438+
/// [feature flag]: https://docs.rs/serde_with/3.12.0/serde_with/guide/feature_flags/index.html
14391439
pub struct TimestampSecondsWithFrac<
14401440
FORMAT: formats::Format = f64,
14411441
STRICTNESS: formats::Strictness = formats::Strict,

serde_with_macros/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [3.12.0] - 2024-12-25
11+
12+
No changes.
13+
1014
## [3.11.0] - 2024-10-05
1115

1216
No changes.

serde_with_macros/src/lib.rs

Lines changed: 5 additions & 5 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.11.0/")]
23+
#![doc(html_root_url = "https://docs.rs/serde_with_macros/3.12.0/")]
2424
// Tarpaulin does not work well with proc macros and marks most of the lines as uncovered.
2525
#![cfg(not(tarpaulin_include))]
2626

@@ -597,8 +597,8 @@ fn field_has_attribute(field: &Field, namespace: &str, name: &str) -> bool {
597597
/// It will also work if the relevant derive is behind a `#[cfg_attr]` attribute
598598
/// and propagate the `#[cfg_attr]` to the various `#[schemars]` field attributes.
599599
///
600-
/// [`serde_as`]: https://docs.rs/serde_with/3.11.0/serde_with/guide/index.html
601-
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/3.11.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
600+
/// [`serde_as`]: https://docs.rs/serde_with/3.12.0/serde_with/guide/index.html
601+
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
602602
#[proc_macro_attribute]
603603
pub fn serde_as(args: TokenStream, input: TokenStream) -> TokenStream {
604604
#[derive(FromMeta)]
@@ -1061,7 +1061,7 @@ fn has_type_embedded(type_: &Type, embedded_type: &syn::Ident) -> bool {
10611061
/// [`Display`]: std::fmt::Display
10621062
/// [`FromStr`]: std::str::FromStr
10631063
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
1064-
/// [serde-as-crate]: https://docs.rs/serde_with/3.11.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
1064+
/// [serde-as-crate]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
10651065
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
10661066
#[proc_macro_derive(DeserializeFromStr, attributes(serde_with))]
10671067
pub fn derive_deserialize_fromstr(item: TokenStream) -> TokenStream {
@@ -1181,7 +1181,7 @@ fn deserialize_fromstr(mut input: DeriveInput, serde_with_crate_path: Path) -> T
11811181
/// [`Display`]: std::fmt::Display
11821182
/// [`FromStr`]: std::str::FromStr
11831183
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
1184-
/// [serde-as-crate]: https://docs.rs/serde_with/3.11.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
1184+
/// [serde-as-crate]: https://docs.rs/serde_with/3.12.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
11851185
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
11861186
#[proc_macro_derive(SerializeDisplay, attributes(serde_with))]
11871187
pub fn derive_serialize_display(item: TokenStream) -> TokenStream {

0 commit comments

Comments
 (0)