-
Notifications
You must be signed in to change notification settings - Fork 19
Commit ca82c6c
Update Rust crate strum to 0.27 (#1653)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [strum](https://redirect.github.com/Peternator7/strum) |
workspace.dependencies | minor | `0.26` -> `0.27` |
---
### Release Notes
<details>
<summary>Peternator7/strum (strum)</summary>
###
[`v0.27.1`](https://redirect.github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0271)
[Compare
Source](https://redirect.github.com/Peternator7/strum/compare/v0.27.0...v0.27.1)
- [#​414](https://redirect.github.com/Peternator7/strum/pull/414):
Fix docrs build error.
- [#​417](https://redirect.github.com/Peternator7/strum/pull/417):
Mention `parse_error_ty` and `parse_error_fn` that had been
left out of the docs accidentally.
-
[#​421](https://redirect.github.com/Peternator7/strum/pull/421)[#​331](https://redirect.github.com/Peternator7/strum/pull/331):
Implement
`#[strum(transparent)]` attribute on `IntoStaticStr`, `Display` and
`AsRefStr` that forwards the implmenentation to
the inner value. Note that for static strings, the inner value must be
convertible to an `&'static str`.
```rust
#[derive(strum::Display)]
enum SurveyResponse {
Yes,
No,
#[strum(transparent)]
Other(String)
}
fn main() {
let response = SurveyResponse::Other("It was good".into());
println!("Question: Did you have fun?");
println!("Answer: {}", response);
// prints: Answer: It was good
}
```
###
[`v0.27.0`](https://redirect.github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0270)
[Compare
Source](https://redirect.github.com/Peternator7/strum/compare/v0.26.3...v0.27.0)
##### Highlights
- [#​407](https://redirect.github.com/Peternator7/strum/pull/407):
`Display` is now correctly derived in `[no_std]` projects.
- [#​402](https://redirect.github.com/Peternator7/strum/pull/402):
`EnumIter` now implements `Send + Sync`
- [#​400](https://redirect.github.com/Peternator7/strum/pull/400):
`EnumTryAs` now handles attributes on variant fields correctly.
- [#​398](https://redirect.github.com/Peternator7/strum/pull/398):
`strum` is now on rust 2021
- [#​391](https://redirect.github.com/Peternator7/strum/pull/391):
`EnumProperties` correctly implements `get_bool` and `get_int`
finally. 🎉
- [#​380](https://redirect.github.com/Peternator7/strum/pull/380):
`FromString` now supports 2 additional attributes, `parse_error_ty`
and `parse_error_fn` that can be added to use a custom error type rather
than the default strum error message.
- [#​410](https://redirect.github.com/Peternator7/strum/pull/410):
These attributes accept a `Path` rather than a `String`
to improve behavior with rust-analyzer.
##### Breaking Changes
- [#​384](https://redirect.github.com/Peternator7/strum/pull/384):
MSRV is now 1.66.1
- [#​391](https://redirect.github.com/Peternator7/strum/pull/391):
`EnumProperties` doesn't provide default implementations anymore.
This would have required you to manually implement this trait which
should be very uncommon.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "after 8pm,before 6am" in timezone
America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone
America/Los_Angeles.
🚦 **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.
---
- [ ] <!-- 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/oxidecomputer/crucible).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzYuMiIsInVwZGF0ZWRJblZlciI6IjM5LjE3Ni4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Alan Hanson <alan@oxidecomputer.com>1 parent cab866b commit ca82c6cCopy full SHA for ca82c6c
2 files changed
+15
-9
lines changed+14-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
|
0 commit comments