Skip to content

Commit fb15656

Browse files
Update Rust crate strum_macros to 0.27 (#1654)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [strum_macros](https://redirect.github.com/Peternator7/strum) | workspace.dependencies | minor | `0.26` -> `0.27` | --- ### Release Notes <details> <summary>Peternator7/strum (strum_macros)</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) ##### 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 ca82c6c commit fb15656

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

Cargo.lock

+16-2
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
@@ -99,7 +99,7 @@ static_assertions = "1.1.0"
9999
statistical = "1.0.0"
100100
subprocess = "0.2.9"
101101
strum = "0.27"
102-
strum_macros = "0.26"
102+
strum_macros = "0.27"
103103
tempfile = "3"
104104
test-strategy = "0.4.0"
105105
thiserror = "1"

protocol/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ crucible-common.workspace = true
1313
num_enum.workspace = true
1414
schemars.workspace = true
1515
serde.workspace = true
16+
strum.workspace = true
1617
strum_macros.workspace = true
1718
tokio-util.workspace = true
1819
tokio.workspace = true

0 commit comments

Comments
 (0)