Skip to content

Commit ca82c6c

Browse files
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) - [#&#8203;414](https://redirect.github.com/Peternator7/strum/pull/414): Fix docrs build error. - [#&#8203;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. - [#&#8203;421](https://redirect.github.com/Peternator7/strum/pull/421)[#&#8203;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 - [#&#8203;407](https://redirect.github.com/Peternator7/strum/pull/407): `Display` is now correctly derived in `[no_std]` projects. - [#&#8203;402](https://redirect.github.com/Peternator7/strum/pull/402): `EnumIter` now implements `Send + Sync` - [#&#8203;400](https://redirect.github.com/Peternator7/strum/pull/400): `EnumTryAs` now handles attributes on variant fields correctly. - [#&#8203;398](https://redirect.github.com/Peternator7/strum/pull/398): `strum` is now on rust 2021 - [#&#8203;391](https://redirect.github.com/Peternator7/strum/pull/391): `EnumProperties` correctly implements `get_bool` and `get_int` finally. 🎉 - [#&#8203;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. - [#&#8203;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 - [#&#8203;384](https://redirect.github.com/Peternator7/strum/pull/384): MSRV is now 1.66.1 - [#&#8203;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 ca82c6c

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

Cargo.lock

+14-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ slog-term = { version = "2.9" }
9898
static_assertions = "1.1.0"
9999
statistical = "1.0.0"
100100
subprocess = "0.2.9"
101-
strum = "0.26"
101+
strum = "0.27"
102102
strum_macros = "0.26"
103103
tempfile = "3"
104104
test-strategy = "0.4.0"

0 commit comments

Comments
 (0)