Release notes
*Sourced from [serde's releases](https://github.com/serde-rs/serde/releases).*
> ## v1.0.103
> - Support deserializing untagged unit variants from formats that treat unit as None ([#1668](https://github-redirect.dependabot.com/serde-rs/serde/issues/1668))
>
> ## v1.0.102
> - Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `Box` ([#1656](https://github-redirect.dependabot.com/serde-rs/serde/issues/1656), thanks [@heftig](https://github.com/heftig))
>
> ## v1.0.101
> - Report errors on malformed serde attributes, like `#[serde(rename =)]` -- the compiler used to reject these itself, but when the compiler relaxed its requirements on attribute syntax these malformed attributes began silently being ignored by serde_derive
>
> - Eliminate unused variable warning when using skip_serializing inside a tuple variant of an adjacently tagged enum ([#1617](https://github-redirect.dependabot.com/serde-rs/serde/issues/1617), thanks [@arilotter](https://github.com/arilotter))
>
> - Support skip attribute inside of newtype variants ([#1622](https://github-redirect.dependabot.com/serde-rs/serde/issues/1622), thanks [@Xaeroxe](https://github.com/Xaeroxe))
>
> ## v1.0.100
> - Provide `serde::ser::StdError` and `serde::de::StdError` which are either a re-export of `std::error::Error` (if Serde's "std" feature is enabled) or a new identical trait (otherwise).
>
> ```rust
> #[cfg(feature = "std")]
> pub use std::error::Error as StdError;
>
> #[cfg(not(feature = "std"))]
> pub trait StdError: Debug + Display {
> fn source(&self) -> Option<&(StdError + 'static)> { None }
> }
> ```
>
> Serde's error traits `serde::ser::Error` and `serde::de::Error` require `std::error::Error` as a supertrait, but only when Serde is built with "std" enabled. Data formats that don't care about no\_std support should generally provide their error types with a `std::error::Error` impl directly:
>
> ```rust
> #[derive(Debug)]
> struct MySerError {...}
>
> impl serde::ser::Error for MySerError {...}
>
> impl std::fmt::Display for MySerError {...}
>
> // We don't support no_std!
> impl std::error::Error for MySerError {}
> ```
>
> Data formats that *do* support no\_std may either have a "std" feature of their own as has been required in the past:
>
> ```toml
> [features]
> std = ["serde/std"]
> ```
>
> ```rust
> #[cfg(feature = "std")]
> impl std::error::Error for MySerError {}
> ... (truncated)
Commits
- [`43a9f59`](https://github.com/serde-rs/serde/commit/43a9f59c184ff338cae259e21ed38b959a451f91) Release 1.0.103
- [`ff70409`](https://github.com/serde-rs/serde/commit/ff70409215b62fa8cd138ce47534c432352c85bb) Merge pull request [#1669](https://github-redirect.dependabot.com/serde-rs/serde/issues/1669) from H2CO3/master
- [`97a98a7`](https://github.com/serde-rs/serde/commit/97a98a7031d051328f0d2841fdfe68d89029764f) Test only deser for untagged unit visit_none
- [`533fb9c`](https://github.com/serde-rs/serde/commit/533fb9cc443eb48604250c14a4d70648752ad17b) Remove never_type feature gate
- [`59b99d2`](https://github.com/serde-rs/serde/commit/59b99d2d60cca145bb82ad973de262405d5b77e1) Move test for untagged-variant-from-unit where it belongs
- [`c796dae`](https://github.com/serde-rs/serde/commit/c796daed7cacc90e398300f130f8c60421762bfc) Fix test for untagged unit variant
- [`6e2c385`](https://github.com/serde-rs/serde/commit/6e2c385fa55d223e3d9dd22ff126f81b4903e05b) Allow untagged unit variants to deserialize from `Visitor::visit_none()`
- [`4eb5807`](https://github.com/serde-rs/serde/commit/4eb580790dd6c96089b92942a5f481b21df4feaf) Require serde_derive version to be the same as serde version
- [`a2c83d7`](https://github.com/serde-rs/serde/commit/a2c83d754bf0b72178fd38bc623ca8d8ea77cac9) Merge pull request [#1664](https://github-redirect.dependabot.com/serde-rs/serde/issues/1664) from mathstuf/minimal-versions-compat
- [`6f946b2`](https://github.com/serde-rs/serde/commit/6f946b20ec2a51bbb98db3d1b63ee3531f28809a) serde_derive: require the same version as serde
- Additional commits viewable in [compare view](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.103)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps serde from 1.0.94 to 1.0.103.
Release notes
*Sourced from [serde's releases](https://github.com/serde-rs/serde/releases).* > ## v1.0.103 > - Support deserializing untagged unit variants from formats that treat unit as None ([#1668](https://github-redirect.dependabot.com/serde-rs/serde/issues/1668)) > > ## v1.0.102 > - Support deserializing `PathBuf` from bytes like `&Path` already did, and support deserializing `BoxCommits
- [`43a9f59`](https://github.com/serde-rs/serde/commit/43a9f59c184ff338cae259e21ed38b959a451f91) Release 1.0.103 - [`ff70409`](https://github.com/serde-rs/serde/commit/ff70409215b62fa8cd138ce47534c432352c85bb) Merge pull request [#1669](https://github-redirect.dependabot.com/serde-rs/serde/issues/1669) from H2CO3/master - [`97a98a7`](https://github.com/serde-rs/serde/commit/97a98a7031d051328f0d2841fdfe68d89029764f) Test only deser for untagged unit visit_none - [`533fb9c`](https://github.com/serde-rs/serde/commit/533fb9cc443eb48604250c14a4d70648752ad17b) Remove never_type feature gate - [`59b99d2`](https://github.com/serde-rs/serde/commit/59b99d2d60cca145bb82ad973de262405d5b77e1) Move test for untagged-variant-from-unit where it belongs - [`c796dae`](https://github.com/serde-rs/serde/commit/c796daed7cacc90e398300f130f8c60421762bfc) Fix test for untagged unit variant - [`6e2c385`](https://github.com/serde-rs/serde/commit/6e2c385fa55d223e3d9dd22ff126f81b4903e05b) Allow untagged unit variants to deserialize from `Visitor::visit_none()` - [`4eb5807`](https://github.com/serde-rs/serde/commit/4eb580790dd6c96089b92942a5f481b21df4feaf) Require serde_derive version to be the same as serde version - [`a2c83d7`](https://github.com/serde-rs/serde/commit/a2c83d754bf0b72178fd38bc623ca8d8ea77cac9) Merge pull request [#1664](https://github-redirect.dependabot.com/serde-rs/serde/issues/1664) from mathstuf/minimal-versions-compat - [`6f946b2`](https://github.com/serde-rs/serde/commit/6f946b20ec2a51bbb98db3d1b63ee3531f28809a) serde_derive: require the same version as serde - Additional commits viewable in [compare view](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.103)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)