Release notes
*Sourced from [serde_derive's releases](https://github.com/serde-rs/serde/releases).*
> ## 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))
Commits
- [`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
- [`cf70c3f`](https://github.com/serde-rs/serde/commit/cf70c3fb05d7ad7c3d7531c6150ac8c70bab8485) Format with rustfmt 2019-06-09
- [`f249e72`](https://github.com/serde-rs/serde/commit/f249e72162fe59335f53f5e230bc511f4bbeb9a3) Provide try_from only on 1.34+
- [`92e0b62`](https://github.com/serde-rs/serde/commit/92e0b62c6b39b34b7ef569666be8f6653b46e4e0) Merge pull request 1526 from fanzeyi/try_from
- [`cf32a5b`](https://github.com/serde-rs/serde/commit/cf32a5b20494eb40cd0efd15b1ea5ac412921321) Release 1.0.96
- [`7b0e06c`](https://github.com/serde-rs/serde/commit/7b0e06c82569bdb72554e8ee61f1afab23a5a3e9) Provide 32 bit atomic impls for emscripten
- [`3158bf9`](https://github.com/serde-rs/serde/commit/3158bf9093fd8aff6bfbbd40e32ac7438bcf4e1d) Merge pull request [#1581](https://github-redirect.dependabot.com/serde-rs/serde/issues/1581) from Roguelazer/issue-1579
- [`01fade7`](https://github.com/serde-rs/serde/commit/01fade764cdb902866fff666ed27f9869304453b) replaced one too many _ with -
- Additional commits viewable in [compare view](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.97)
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)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- 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.95 to 1.0.97.
Release notes
*Sourced from [serde_derive's releases](https://github.com/serde-rs/serde/releases).* > ## 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
- [`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 - [`cf70c3f`](https://github.com/serde-rs/serde/commit/cf70c3fb05d7ad7c3d7531c6150ac8c70bab8485) Format with rustfmt 2019-06-09 - [`f249e72`](https://github.com/serde-rs/serde/commit/f249e72162fe59335f53f5e230bc511f4bbeb9a3) Provide try_from only on 1.34+ - [`92e0b62`](https://github.com/serde-rs/serde/commit/92e0b62c6b39b34b7ef569666be8f6653b46e4e0) Merge pull request 1526 from fanzeyi/try_from - [`cf32a5b`](https://github.com/serde-rs/serde/commit/cf32a5b20494eb40cd0efd15b1ea5ac412921321) Release 1.0.96 - [`7b0e06c`](https://github.com/serde-rs/serde/commit/7b0e06c82569bdb72554e8ee61f1afab23a5a3e9) Provide 32 bit atomic impls for emscripten - [`3158bf9`](https://github.com/serde-rs/serde/commit/3158bf9093fd8aff6bfbbd40e32ac7438bcf4e1d) Merge pull request [#1581](https://github-redirect.dependabot.com/serde-rs/serde/issues/1581) from Roguelazer/issue-1579 - [`01fade7`](https://github.com/serde-rs/serde/commit/01fade764cdb902866fff666ed27f9869304453b) replaced one too many _ with - - Additional commits viewable in [compare view](https://github.com/serde-rs/serde/compare/v1.0.95...v1.0.97)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) - Automerge options (never/patch/minor, and dev/runtime dependencies) - 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.