Skip to content
Snippets Groups Projects

chore(deps): update rust crate strum to 0.27.0

Merged renovate requested to merge renovate/strum-monorepo into main

This MR contains the following updates:

Package Type Update Change
strum workspace.dependencies minor 0.26.3 -> 0.27.0

Release Notes

Peternator7/strum (strum)

v0.27.1

Compare Source

  • #​414: Fix docrs build error.

  • #​417: Mention parse_error_ty and parse_error_fn that had been left out of the docs accidentally.

  • #​421#​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.

    #[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

Compare Source

Highlights
  • #​407: Display is now correctly derived in [no_std] projects.
  • #​402: EnumIter now implements Send + Sync
  • #​400: EnumTryAs now handles attributes on variant fields correctly.
  • #​398: strum is now on rust 2021
  • #​391: EnumProperties correctly implements get_bool and get_int finally. :tada:
  • #​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: These attributes accept a Path rather than a String to improve behavior with rust-analyzer.
Breaking Changes
  • #​384: MSRV is now 1.66.1
  • #​391: EnumProperties doesn't provide default implementations anymore. This would have required you to manually implement this trait which should be very uncommon.

Configuration

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

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: Ignore: Close this MR and you won't be reminded about this update again.


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

This MR has been generated by Renovate Bot.

Edited by renovate

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading