Skip to content

Commit bcda3fa

Browse files
authored
Bump version to 3.7.0 (#720)
2 parents 7e9772f + a446da1 commit bcda3fa

File tree

8 files changed

+36
-29
lines changed

8 files changed

+36
-29
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.65"
15-
version = "3.6.1"
15+
version = "3.7.0"
1616

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

README.md

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

186-
[`DisplayFromStr`]: https://docs.rs/serde_with/3.6.1/serde_with/struct.DisplayFromStr.html
187-
[`with_prefix!`]: https://docs.rs/serde_with/3.6.1/serde_with/macro.with_prefix.html
188-
[feature flags]: https://docs.rs/serde_with/3.6.1/serde_with/guide/feature_flags/index.html
189-
[skip_serializing_none]: https://docs.rs/serde_with/3.6.1/serde_with/attr.skip_serializing_none.html
190-
[StringWithSeparator]: https://docs.rs/serde_with/3.6.1/serde_with/struct.StringWithSeparator.html
191-
[user guide]: https://docs.rs/serde_with/3.6.1/serde_with/guide/index.html
186+
[`DisplayFromStr`]: https://docs.rs/serde_with/3.7.0/serde_with/struct.DisplayFromStr.html
187+
[`with_prefix!`]: https://docs.rs/serde_with/3.7.0/serde_with/macro.with_prefix.html
188+
[feature flags]: https://docs.rs/serde_with/3.7.0/serde_with/guide/feature_flags/index.html
189+
[skip_serializing_none]: https://docs.rs/serde_with/3.7.0/serde_with/attr.skip_serializing_none.html
190+
[StringWithSeparator]: https://docs.rs/serde_with/3.7.0/serde_with/struct.StringWithSeparator.html
191+
[user guide]: https://docs.rs/serde_with/3.7.0/serde_with/guide/index.html
192192
[with-annotation]: https://serde.rs/field-attrs.html#with
193-
[as-annotation]: https://docs.rs/serde_with/3.6.1/serde_with/guide/serde_as/index.html
193+
[as-annotation]: https://docs.rs/serde_with/3.7.0/serde_with/guide/serde_as/index.html
194194

195195
## License
196196

serde_with/CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [3.7.0] - 2024-03-11
11+
1012
### Added
1113

1214
* Implement `JsonSchemaAs` for `EnumMap` by @swlynch99 (#697)
15+
* Implement `JsonSchemaAs` for `IfIsHumanReadable` by @swlynch99 (#717)
16+
* Implement `JsonSchemaAs` for `KeyValueMap` by @swlynch99 (#713)
17+
* Implement `JsonSchemaAs` for `OneOrMany` by @swlynch99 (#719)
1318

1419
### Fixed
1520

serde_with/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ schemars_0_8 = {package = "schemars", version = "0.8.16", optional = true, defau
133133
serde = {version = "1.0.152", default-features = false}
134134
serde_derive = "1.0.152"
135135
serde_json = {version = "1.0.45", optional = true, default-features = false}
136-
serde_with_macros = {path = "../serde_with_macros", version = "=3.6.1", optional = true}
136+
serde_with_macros = {path = "../serde_with_macros", version = "=3.7.0", optional = true}
137137
time_0_3 = {package = "time", version = "~0.3.11", optional = true, default-features = false}
138138

139139
[dev-dependencies]

serde_with/src/lib.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
)))]
1717
// Not needed for 2018 edition and conflicts with `rust_2018_idioms`
1818
#![doc(test(no_crate_inject))]
19-
#![doc(html_root_url = "https://docs.rs/serde_with/3.6.1/")]
19+
#![doc(html_root_url = "https://docs.rs/serde_with/3.7.0/")]
2020
#![cfg_attr(docsrs, feature(doc_cfg))]
2121
#![no_std]
2222

@@ -261,14 +261,14 @@
261261
//! # }
262262
//! ```
263263
//!
264-
//! [`DisplayFromStr`]: https://docs.rs/serde_with/3.6.1/serde_with/struct.DisplayFromStr.html
265-
//! [`with_prefix!`]: https://docs.rs/serde_with/3.6.1/serde_with/macro.with_prefix.html
266-
//! [feature flags]: https://docs.rs/serde_with/3.6.1/serde_with/guide/feature_flags/index.html
267-
//! [skip_serializing_none]: https://docs.rs/serde_with/3.6.1/serde_with/attr.skip_serializing_none.html
268-
//! [StringWithSeparator]: https://docs.rs/serde_with/3.6.1/serde_with/struct.StringWithSeparator.html
269-
//! [user guide]: https://docs.rs/serde_with/3.6.1/serde_with/guide/index.html
264+
//! [`DisplayFromStr`]: https://docs.rs/serde_with/3.7.0/serde_with/struct.DisplayFromStr.html
265+
//! [`with_prefix!`]: https://docs.rs/serde_with/3.7.0/serde_with/macro.with_prefix.html
266+
//! [feature flags]: https://docs.rs/serde_with/3.7.0/serde_with/guide/feature_flags/index.html
267+
//! [skip_serializing_none]: https://docs.rs/serde_with/3.7.0/serde_with/attr.skip_serializing_none.html
268+
//! [StringWithSeparator]: https://docs.rs/serde_with/3.7.0/serde_with/struct.StringWithSeparator.html
269+
//! [user guide]: https://docs.rs/serde_with/3.7.0/serde_with/guide/index.html
270270
//! [with-annotation]: https://serde.rs/field-attrs.html#with
271-
//! [as-annotation]: https://docs.rs/serde_with/3.6.1/serde_with/guide/serde_as/index.html
271+
//! [as-annotation]: https://docs.rs/serde_with/3.7.0/serde_with/guide/serde_as/index.html
272272
273273
#[cfg(feature = "alloc")]
274274
extern crate alloc;
@@ -481,7 +481,7 @@ pub use serde_with_macros::*;
481481
/// # }
482482
/// ```
483483
///
484-
/// [serde_as]: https://docs.rs/serde_with/3.6.1/serde_with/attr.serde_as.html
484+
/// [serde_as]: https://docs.rs/serde_with/3.7.0/serde_with/attr.serde_as.html
485485
pub struct As<T: ?Sized>(PhantomData<T>);
486486

487487
/// Adapter to convert from `serde_as` to the serde traits.
@@ -956,7 +956,7 @@ pub struct BytesOrString;
956956
/// ```
957957
///
958958
/// [`chrono::Duration`]: ::chrono_0_4::Duration
959-
/// [feature flag]: https://docs.rs/serde_with/3.6.1/serde_with/guide/feature_flags/index.html
959+
/// [feature flag]: https://docs.rs/serde_with/3.7.0/serde_with/guide/feature_flags/index.html
960960
pub struct DurationSeconds<
961961
FORMAT: formats::Format = u64,
962962
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1088,7 +1088,7 @@ pub struct DurationSeconds<
10881088
/// ```
10891089
///
10901090
/// [`chrono::Duration`]: ::chrono_0_4::Duration
1091-
/// [feature flag]: https://docs.rs/serde_with/3.6.1/serde_with/guide/feature_flags/index.html
1091+
/// [feature flag]: https://docs.rs/serde_with/3.7.0/serde_with/guide/feature_flags/index.html
10921092
pub struct DurationSecondsWithFrac<
10931093
FORMAT: formats::Format = f64,
10941094
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1290,7 +1290,7 @@ pub struct DurationNanoSecondsWithFrac<
12901290
/// [`SystemTime`]: std::time::SystemTime
12911291
/// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
12921292
/// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
1293-
/// [feature flag]: https://docs.rs/serde_with/3.6.1/serde_with/guide/feature_flags/index.html
1293+
/// [feature flag]: https://docs.rs/serde_with/3.7.0/serde_with/guide/feature_flags/index.html
12941294
pub struct TimestampSeconds<
12951295
FORMAT: formats::Format = i64,
12961296
STRICTNESS: formats::Strictness = formats::Strict,
@@ -1432,7 +1432,7 @@ pub struct TimestampSeconds<
14321432
/// [`chrono::DateTime<Local>`]: ::chrono_0_4::DateTime
14331433
/// [`chrono::DateTime<Utc>`]: ::chrono_0_4::DateTime
14341434
/// [NaiveDateTime]: ::chrono_0_4::NaiveDateTime
1435-
/// [feature flag]: https://docs.rs/serde_with/3.6.1/serde_with/guide/feature_flags/index.html
1435+
/// [feature flag]: https://docs.rs/serde_with/3.7.0/serde_with/guide/feature_flags/index.html
14361436
pub struct TimestampSecondsWithFrac<
14371437
FORMAT: formats::Format = f64,
14381438
STRICTNESS: formats::Strictness = formats::Strict,

serde_with_macros/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.7.0] - 2024-03-11
11+
1012
### Fixed
1113

1214
* Detect conflicting `schema_with` attributes on fields with `schemars` annotations by @swlynch99 (#715)

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.6.1/")]
23+
#![doc(html_root_url = "https://docs.rs/serde_with_macros/3.7.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.6.1/serde_with/guide/index.html
593-
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/3.6.1/serde_with/guide/serde_as/index.html#re-exporting-serde_as
592+
/// [`serde_as`]: https://docs.rs/serde_with/3.7.0/serde_with/guide/index.html
593+
/// [re-exporting `serde_as`]: https://docs.rs/serde_with/3.7.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)]
@@ -1069,7 +1069,7 @@ fn has_type_embedded(type_: &Type, embedded_type: &syn::Ident) -> bool {
10691069
/// [`Display`]: std::fmt::Display
10701070
/// [`FromStr`]: std::str::FromStr
10711071
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
1072-
/// [serde-as-crate]: https://docs.rs/serde_with/3.6.1/serde_with/guide/serde_as/index.html#re-exporting-serde_as
1072+
/// [serde-as-crate]: https://docs.rs/serde_with/3.7.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
10731073
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
10741074
#[proc_macro_derive(DeserializeFromStr, attributes(serde_with))]
10751075
pub fn derive_deserialize_fromstr(item: TokenStream) -> TokenStream {
@@ -1189,7 +1189,7 @@ fn deserialize_fromstr(mut input: DeriveInput, serde_with_crate_path: Path) -> T
11891189
/// [`Display`]: std::fmt::Display
11901190
/// [`FromStr`]: std::str::FromStr
11911191
/// [cargo-toml-rename]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
1192-
/// [serde-as-crate]: https://docs.rs/serde_with/3.6.1/serde_with/guide/serde_as/index.html#re-exporting-serde_as
1192+
/// [serde-as-crate]: https://docs.rs/serde_with/3.7.0/serde_with/guide/serde_as/index.html#re-exporting-serde_as
11931193
/// [serde-crate]: https://serde.rs/container-attrs.html#crate
11941194
#[proc_macro_derive(SerializeDisplay, attributes(serde_with))]
11951195
pub fn derive_serialize_display(item: TokenStream) -> TokenStream {

0 commit comments

Comments
 (0)