Release notes
*Sourced from [serde_derive's releases](https://github.com/serde-rs/serde/releases).*
> ## v1.0.98
> - Add support for NonZeroI* types ([#1589](https://github-redirect.dependabot.com/serde-rs/serde/issues/1589), thanks [@Flaise](https://github.com/Flaise))
>
> ## v1.0.97
> - Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#1526](https://github-redirect.dependabot.com/serde-rs/serde/issues/1526), thanks [@fanzeyi](https://github.com/fanzeyi))
>
> ```rust
> #[derive(Deserialize)]
> #[serde(try_from = "u32")]
> enum N {
> Zero,
> One,
> Two,
> }
>
> impl TryFrom for N {
> type Error = String;
>
> fn try_from(u: u32) -> Result {
> match u {
> 0 => Ok(Self::Zero),
> 1 => Ok(Self::One),
> 2 => Ok(Self::Two),
> other => Err(format!("out of range: {}", other)),
> }
> }
> }
> ```
>
> ## v1.0.96
> - Implement serialization and deserialization for std::sync::atomic types ([#1572](https://github-redirect.dependabot.com/serde-rs/serde/issues/1572) and [#1581](https://github-redirect.dependabot.com/serde-rs/serde/issues/1581), thanks [@Roguelazer](https://github.com/Roguelazer))
> - Make "alloc" feature work on stable Rust 1.36+ ([#1576](https://github-redirect.dependabot.com/serde-rs/serde/issues/1576), thanks [@c410-f3r](https://github.com/c410-f3r))
>
> ## v1.0.95
> *yanked*
Commits
- [`690467c`](https://github.com/serde-rs/serde/commit/690467cbe2bc3bf856511813fb335812691b1494) Release 1.0.98
- [`71efd8f`](https://github.com/serde-rs/serde/commit/71efd8ffda6e9baa1652c52731e0e6d35a051b78) Merge pull request [#1590](https://github-redirect.dependabot.com/serde-rs/serde/issues/1590) from dtolnay/manifest
- [`9bb196a`](https://github.com/serde-rs/serde/commit/9bb196ae6eb64aead633cdb02eabb1636282e38e) Work around failing to parse manifest in 1.27 and 1.28 builds
- [`ce75418`](https://github.com/serde-rs/serde/commit/ce75418e40a593fc5c0902cbf4a45305a4178dd7) Merge pull request [#1589](https://github-redirect.dependabot.com/serde-rs/serde/issues/1589) from Flaise/nonzeroi
- [`78c7f09`](https://github.com/serde-rs/serde/commit/78c7f09e28df6550c8bae5e04c86a1b5202d6a1e) Add build gate for nonzero signed integers so rustc <1.34 still works
- [`e7269ac`](https://github.com/serde-rs/serde/commit/e7269ac84e7f8c73bd8556215dabefcc0a42a142) Add travis builds on every version in build.rs
- [`34866e2`](https://github.com/serde-rs/serde/commit/34866e20a832950188105a2ac51f1636007bf509) Add support for NonZeroI* types
- [`3ae2bee`](https://github.com/serde-rs/serde/commit/3ae2bee272cd51ca65162646185043046751dc6d) Release 1.0.97
- [`d0fb958`](https://github.com/serde-rs/serde/commit/d0fb958e99c2c00f7b6d6d1cffe7fabd3d74a64c) Remove unneeded explicit type parameters in test_from_into_traits
- [`b941c63`](https://github.com/serde-rs/serde/commit/b941c63a534b3360ce849010a6f2eef06d3299d9) More typical TryFrom usage for test
- Additional commits viewable in [compare view](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.98)
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 ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it
- `@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)
Finally, you can contact us by mentioning @dependabot.
Bumps serde_derive from 1.0.94 to 1.0.98.
Release notes
*Sourced from [serde_derive's releases](https://github.com/serde-rs/serde/releases).* > ## v1.0.98 > - Add support for NonZeroI* types ([#1589](https://github-redirect.dependabot.com/serde-rs/serde/issues/1589), thanks [@Flaise](https://github.com/Flaise)) > > ## v1.0.97 > - Introduce `serde(try_from = "...")` attribute to derive Deserialize based on a given implementation of [`std::convert::TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) ([#1526](https://github-redirect.dependabot.com/serde-rs/serde/issues/1526), thanks [@fanzeyi](https://github.com/fanzeyi)) > > ```rust > #[derive(Deserialize)] > #[serde(try_from = "u32")] > enum N { > Zero, > One, > Two, > } > > impl TryFromCommits
- [`690467c`](https://github.com/serde-rs/serde/commit/690467cbe2bc3bf856511813fb335812691b1494) Release 1.0.98 - [`71efd8f`](https://github.com/serde-rs/serde/commit/71efd8ffda6e9baa1652c52731e0e6d35a051b78) Merge pull request [#1590](https://github-redirect.dependabot.com/serde-rs/serde/issues/1590) from dtolnay/manifest - [`9bb196a`](https://github.com/serde-rs/serde/commit/9bb196ae6eb64aead633cdb02eabb1636282e38e) Work around failing to parse manifest in 1.27 and 1.28 builds - [`ce75418`](https://github.com/serde-rs/serde/commit/ce75418e40a593fc5c0902cbf4a45305a4178dd7) Merge pull request [#1589](https://github-redirect.dependabot.com/serde-rs/serde/issues/1589) from Flaise/nonzeroi - [`78c7f09`](https://github.com/serde-rs/serde/commit/78c7f09e28df6550c8bae5e04c86a1b5202d6a1e) Add build gate for nonzero signed integers so rustc <1.34 still works - [`e7269ac`](https://github.com/serde-rs/serde/commit/e7269ac84e7f8c73bd8556215dabefcc0a42a142) Add travis builds on every version in build.rs - [`34866e2`](https://github.com/serde-rs/serde/commit/34866e20a832950188105a2ac51f1636007bf509) Add support for NonZeroI* types - [`3ae2bee`](https://github.com/serde-rs/serde/commit/3ae2bee272cd51ca65162646185043046751dc6d) Release 1.0.97 - [`d0fb958`](https://github.com/serde-rs/serde/commit/d0fb958e99c2c00f7b6d6d1cffe7fabd3d74a64c) Remove unneeded explicit type parameters in test_from_into_traits - [`b941c63`](https://github.com/serde-rs/serde/commit/b941c63a534b3360ce849010a6f2eef06d3299d9) More typical TryFrom usage for test - Additional commits viewable in [compare view](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.98)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 ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it). To ignore the version in this PR you can just close it - `@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) Finally, you can contact us by mentioning @dependabot.