Commit 45c2924
authored
fix(deps): update rust crate strum to 0.28 (#522)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [strum](https://redirect.github.com/Peternator7/strum) | dependencies
| minor | `0.27` → `0.28` |
---
### Release Notes
<details>
<summary>Peternator7/strum (strum)</summary>
###
[`v0.28.0`](https://redirect.github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0280)
[Compare
Source](https://redirect.github.com/Peternator7/strum/compare/v0.27.2...v0.28.0)
- [#​461](https://redirect.github.com/Peternator7/strum/pull/461):
Allow any kind of passthrough attributes on `EnumDiscriminants`.
- Previously only list-style attributes (e.g.
`#[strum_discriminants(derive(...))]`) were supported. Now path-only
(e.g. `#[strum_discriminants(non_exhaustive)]`) and name/value (e.g.
`#[strum_discriminants(doc = "foo")]`)
attributes are also supported.
- [#​462](https://redirect.github.com/Peternator7/strum/pull/462):
Add missing `#[automatically_derived]` to generated impls not
covered by
[#​444](https://redirect.github.com/Peternator7/strum/pull/444).
- [#​466](https://redirect.github.com/Peternator7/strum/pull/466):
Bump MSRV to 1.71, required to keep up with updated `syn` and
`windows-sys` dependencies. This is a breaking change if you're on an
old version of rust.
- [#​469](https://redirect.github.com/Peternator7/strum/pull/469):
Use absolute paths in generated proc macro code to avoid
potential name conflicts.
- [#​465](https://redirect.github.com/Peternator7/strum/pull/465):
Upgrade `phf` dependency to v0.13.
- [#​473](https://redirect.github.com/Peternator7/strum/pull/473):
Fix `cargo fmt` / `clippy` issues and add GitHub Actions CI.
- [#​477](https://redirect.github.com/Peternator7/strum/pull/477):
`strum::ParseError` now implements `core::fmt::Display` instead
`std::fmt::Display` to make it `#[no_std]` compatible. Note the `Error`
trait wasn't available in core until `1.81`
so `strum::ParseError` still only implements that in std.
- [#​476](https://redirect.github.com/Peternator7/strum/pull/476):
**Breaking Change** - `EnumString` now implements `From<&str>`
(infallible) instead of `TryFrom<&str>` when the enum has a
`#[strum(default)]` variant. This more accurately
reflects that parsing cannot fail in that case. If you need the old
`TryFrom` behavior, you can opt back in using
`parse_error_ty` and `parse_error_fn`:
```rust
#[derive(EnumString)]
#[strum(parse_error_ty = strum::ParseError, parse_error_fn =
make_error)]
pub enum Color {
Red,
#[strum(default)]
Other(String),
}
fn make_error(x: &str) -> strum::ParseError {
strum::ParseError::VariantNotFound
}
```
- [#​431](https://redirect.github.com/Peternator7/strum/pull/431):
Fix bug where `EnumString` ignored the `parse_err_ty`
attribute when the enum had a `#[strum(default)]` variant.
- [#​474](https://redirect.github.com/Peternator7/strum/pull/474):
EnumDiscriminants will now copy `default` over from the
original enum to the Discriminant enum.
```rust
#[derive(Debug, Default, EnumDiscriminants)]
#[strum_discriminants(derive(Default))] // <- Remove this in 0.28.
enum MyEnum {
#[default] // <- Will be the #[default] on the MyEnumDiscriminant
#[strum_discriminants(default)] // <- Remove this in 0.28
Variant0,
Variant1 { a: NonDefault },
}
```
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on friday" in timezone
America/Chicago, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/jdx/usage).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zNi4yIiwidXBkYXRlZEluVmVyIjoiNDMuMzYuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 41232d2 commit 45c2924
2 files changed
+5
-5
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments