evaneaston / openweathermap

A client library for the free, v2.5 OpenWeatherMap.org API and a prometheus exporter, written in rust.
MIT License
2 stars 2 forks source link

Update Rust crate serde_with to v3 #29

Closed renovate[bot] closed 7 months ago

renovate[bot] commented 7 months ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
serde_with workspace.dependencies major 2.3.3 -> 3.7.0

Release Notes

jonasbb/serde_with (serde_with) ### [`v3.7.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.7.0): serde_with v3.7.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.6.1...v3.7.0) ##### Added - Implement `JsonSchemaAs` for `EnumMap` by [@​swlynch99](https://togithub.com/swlynch99) ([#​697](https://togithub.com/jonasbb/serde_with/issues/697)) - Implement `JsonSchemaAs` for `IfIsHumanReadable` by [@​swlynch99](https://togithub.com/swlynch99) ([#​717](https://togithub.com/jonasbb/serde_with/issues/717)) - Implement `JsonSchemaAs` for `KeyValueMap` by [@​swlynch99](https://togithub.com/swlynch99) ([#​713](https://togithub.com/jonasbb/serde_with/issues/713)) - Implement `JsonSchemaAs` for `OneOrMany` by [@​swlynch99](https://togithub.com/swlynch99) ([#​719](https://togithub.com/jonasbb/serde_with/issues/719)) ##### Fixed - Detect conflicting `schema_with` attributes on fields with `schemars` annotations by [@​swlynch99](https://togithub.com/swlynch99) ([#​715](https://togithub.com/jonasbb/serde_with/issues/715)) This extends the existing avoidance mechanism to a new variant fixing [#​712](https://togithub.com/jonasbb/serde_with/issues/712). ### [`v3.6.1`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.6.1): serde_with v3.6.1 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.6.0...v3.6.1) ##### Changed - Eliminate dependency on serde's "derive" feature by [@​dtolnay](https://togithub.com/dtolnay) ([#​694](https://togithub.com/jonasbb/serde_with/issues/694)) This allows parallel compilation of `serde` and `serde_derive` which can speed up the wallclock time. It requires that downstream crates do not use the "derive" feature either. ### [`v3.6.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.6.0): serde_with v3.6.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.5.1...v3.6.0) ##### Added - Add `IfIsHumanReadable` for conditional implementation by [@​irriden](https://togithub.com/irriden) ([#​690](https://togithub.com/jonasbb/serde_with/issues/690)) Used to specify different transformations for text-based and binary formats. - Add more `JsonSchemaAs` impls for all `Duration*` and `Timestamp*` adaptors by [@​swlynch99](https://togithub.com/swlynch99) ([#​685](https://togithub.com/jonasbb/serde_with/issues/685)) ##### Changed - Bump MSRV to 1.65, since that is required for the `regex` dependency. ### [`v3.5.1`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.5.1): serde_with v3.5.1 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.5.0...v3.5.1) ##### Fixed - The `serde_as` macro now better detects existing `schemars` attributes on fields and incorporates them by [@​swlynch99](https://togithub.com/swlynch99) ([#​682](https://togithub.com/jonasbb/serde_with/issues/682)) This avoids errors on existing `#[schemars(with = ...)]` annotations. ### [`v3.5.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.5.0): serde_with v3.5.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.4.0...v3.5.0) ##### Added - Support for `schemars` integration added by [@​swlynch99](https://togithub.com/swlynch99) ([#​666](https://togithub.com/jonasbb/serde_with/issues/666)) The support uses a new `Schema` top-level item which implements `JsonSchema` The `serde_as` macro can now detect `schemars` usage and emits matching annotations for all fields with `serde_as` attribute. Many types of this crate come already with support for the `schemars`, but support is not complete and will be extended over time. ### [`v3.4.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.4.0): serde_with v3.4.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.3.0...v3.4.0) - Lower minimum required serde version to 1.0.152 ([#​653](https://togithub.com/jonasbb/serde_with/issues/653)) Thanks to [@​banool](https://togithub.com/banool) for submitting the PR. This allows people that have a problem with 1.0.153 to still use `serde_with`. - Add support for `core::ops::Bound` ([#​655](https://togithub.com/jonasbb/serde_with/issues/655)) Thanks to [@​qsantos](https://togithub.com/qsantos) for submitting the PR. ### [`v3.3.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.3.0): serde_with v3.3.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.2.0...v3.3.0) ##### Added - Support the `hashbrown` type `HashMap` and `HashSet` ([#​636](https://togithub.com/jonasbb/serde_with/issues/636), [#​637](https://togithub.com/jonasbb/serde_with/issues/637)) Thanks to [@​OliverNChalk](https://togithub.com/OliverNChalk) for raising the issue and submitting a PR. This extends the existing support for `HashMap`s and `HashSet`s to the `hashbrown` crate v0.14. The same conversions as for the `std` and `indexmap` types are available, like general support for `#[serde_as]` and converting it to/from sequences or maps. ##### Changed - Generalize some trait bounds for `DeserializeAs` implementations While working on [#​637](https://togithub.com/jonasbb/serde_with/issues/637) it came to light that some of the macros for generating `DeserializeAs` implementations were not as generic as they could. This means they didn't work with custom hasher types, but only the default hashers. This has now been fixed and custom hashers should work better, as long as they implement `BuildHasher + Default`. - (internal) Change how features are documented ([#​639](https://togithub.com/jonasbb/serde_with/issues/639)) This change moves the feature documentation into `Cargo.toml` in a format that can be read by lib.rs. It will improve the generated features documentation there. The page with all features remains in the guide but is now generated from the `Cargo.toml` information. ### [`v3.2.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.2.0): serde_with v3.2.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.1.0...v3.2.0) ##### Added - Add optional support for indexmap v2 ([#​621](https://togithub.com/jonasbb/serde_with/issues/621)) Support for v1 is already available using the `indexmap_1` feature. This adds identical support for v2 of indexmap using the `indexmap_2` feature. ##### Changed - Bump MSRV to 1.64, since that is required for the indexmap v2 dependency. ##### Fixed - Prevent panics when deserializing `i64::MIN` using `TimestampSeconds` ([#​632](https://togithub.com/jonasbb/serde_with/issues/632), [#​633](https://togithub.com/jonasbb/serde_with/issues/633)) Thanks to [@​hollmmax](https://togithub.com/hollmmax) for reporting and fixing the issue. ### [`v3.1.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.1.0): serde_with v3.1.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v3.0.0...v3.1.0) ##### Added - Add `FromIntoRef` and `TryFromIntoRef` ([#​618](https://togithub.com/jonasbb/serde_with/issues/618)) Thanks to [@​oblique](https://togithub.com/oblique) for submitting the PR. The new types are similar to the existing `FromInto` and `TryFromInto` types. They behave different during serialization, allowing the removal of the `Clone` bound on their `SerializeAs` trait implementation ##### Changed - Improve documentation about cfg-gating `serde_as` ([#​607](https://togithub.com/jonasbb/serde_with/issues/607)) - Bump MSRV to 1.61 because that is required by the crate `cfg_eval`. ### [`v3.0.0`](https://togithub.com/jonasbb/serde_with/releases/tag/v3.0.0): serde_with v3.0.0 [Compare Source](https://togithub.com/jonasbb/serde_with/compare/v2.3.3...v3.0.0) This breaking release should not impact most users. It only affects custom character sets used for base64 of which there are no instances of on GitHub. ##### Changed - Upgrade base64 to v0.21 ([#​543](https://togithub.com/jonasbb/serde_with/issues/543)) Thanks to [@​jeff-hiner](https://togithub.com/jeff-hiner) for submitting the PR. Remove support for custom character sets. This is technically a breaking change. A code search on GitHub revealed no instances of anyone using that, and `serde_with` ships with many predefined character sets. The removal means that future base64 upgrade will no longer be breaking changes.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.