Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

fix(deps): update rust crate strum to 0.25.0 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 20, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
strum dependencies minor 0.24.0 -> 0.25.0

Release Notes

Peternator7/strum (strum)

v0.25.0

Breaking Changes
  • #​261 Upgrade syn dependency to version 2. This bumps the msrv to
    1.56. It's impractical to maintain a package where a core dependency of the ecosystem has a different msrv than this one.

  • 270 Change the to_string behavior when using default. Now, when
    using default, the display method will return the display version of the value contained in the enum rather than
    the name of the variant.

    #[derive(strum::Display)]
    enum Color {
      Red,
      Blue,
      Green,
      #[strum(default)]
      Other(String)
    }
    
    fn main() {
      // This used to print "Other", now it prints "Purple"
      assert_eq!(Color::Other("Purple".to_string()).to_string(), "Purple");
    }

    If you want the old behavior, you can use the to_string attribute to override this behavior. See the PR for an example.

  • 268 Update the behavior of EnumCount to exclude variants that are
    disabled. This is a breaking change, but the behavior makes it more consistent with other methods.

New Features
  • #​257 This PR adds the EnumIs macro that automatically implements
    is_{variant_name} methods for each variant.

    #[derive(EnumIs)]
    enum Color {
        Red,
        Blue,
        Green,
    }
    
    #[test]
    fn simple_test() {
        assert!(Color::Red.is_red());
    }

v0.24.1

  • #​220. Add support for PHF in EnumString (opt-in runtime
    performance improvements for large enums as #[strum(use_phf)], requires phf feature and increases MSRV to 1.46)
  • #​217: Automatically implement TryFrom in FromRepr. This is
    technically a breaking change, but the fix is to just remove the manual implementation of TryFrom so it shouldn't
    be more than a minor inconvenience.

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 this update again.


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title fix(deps): update rust crate strum to 0.24.1 fix(deps): update rust crate strum to 0.25.0 Jun 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
0 participants