Update strum to v0.27.2 #8

Merged
claus merged 1 commit from renovate/strum into master 2025-07-23 13:40:52 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
strum dependencies patch 0.27.1 -> 0.27.2
strum_macros dependencies patch 0.27.1 -> 0.27.2

Release Notes

Peternator7/strum (strum)

v0.27.2

Compare Source

  • #​141: Adding support for doc comments on EnumDiscriminants generated type.

    • The doc comment will be copied from the variant on the type itself.
  • #​435:allow discriminants on empty enum.

  • #​443: Change enum table callbacks to FnMut.

  • #​444: Add #[automatically_derived] to the impls by @​dandedotdev in https://github.com/Peternator7/strum/pull/444

    • This should make the linter less noisy with warnings in generated code.
  • #​440: Implement a suffix attribute for serialization of enum variants.

    #[derive(strum::Display)]
    #[strum(suffix=".json")]
    #[strum(serialize_all="snake_case")]
    enum StorageConfiguration {
      PostgresProvider,
      S3StorageProvider,
      AzureStorageProvider,
    }
    
    fn main() {
      let response = SurveyResponse::Other("It was good".into());
      println!("Loading configuration from: {}", StorageConfiguration::PostgresProvider);
      // prints: Loaded Configuration from: postgres_provider.json
    }
    
  • #​446: Drop needless rustversion dependency.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [strum](https://github.com/Peternator7/strum) | dependencies | patch | `0.27.1` -> `0.27.2` | | [strum_macros](https://github.com/Peternator7/strum) | dependencies | patch | `0.27.1` -> `0.27.2` | --- ### Release Notes <details> <summary>Peternator7/strum (strum)</summary> ### [`v0.27.2`](https://github.com/Peternator7/strum/blob/HEAD/CHANGELOG.md#0272) [Compare Source](https://github.com/Peternator7/strum/compare/v0.27.1...v0.27.2) - [#&#8203;141](https://github.com/Peternator7/strum/pull/141): Adding support for doc comments on `EnumDiscriminants` generated type. - The doc comment will be copied from the variant on the type itself. - [#&#8203;435](https://github.com/Peternator7/strum/pull/435):allow discriminants on empty enum. - [#&#8203;443](https://github.com/Peternator7/strum/pull/443): Change enum table callbacks to FnMut. - [#&#8203;444](https://github.com/Peternator7/strum/pull/444): Add `#[automatically_derived]` to the `impl`s by [@&#8203;dandedotdev](https://github.com/dandedotdev) in https://github.com/Peternator7/strum/pull/444 - This should make the linter less noisy with warnings in generated code. - [#&#8203;440](https://github.com/Peternator7/strum/pull/440): Implement a `suffix` attribute for serialization of enum variants. ```rust #[derive(strum::Display)] #[strum(suffix=".json")] #[strum(serialize_all="snake_case")] enum StorageConfiguration { PostgresProvider, S3StorageProvider, AzureStorageProvider, } fn main() { let response = SurveyResponse::Other("It was good".into()); println!("Loading configuration from: {}", StorageConfiguration::PostgresProvider); // prints: Loaded Configuration from: postgres_provider.json } ``` - [#&#8203;446](https://github.com/Peternator7/strum/pull/446): Drop needless `rustversion` dependency. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **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 these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjQyLjEwIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Update strum to v0.27.2
All checks were successful
ci/woodpecker/push/image-related Pipeline was successful
d8c467a79d
claus merged commit 54ab4ba23d into master 2025-07-23 13:40:52 +00:00
claus deleted branch renovate/strum 2025-07-23 13:40:52 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claus/rustdump!8
No description provided.