Skip to content

Deps: Update Rust crate strum to 0.27.0 #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 24, 2025

This PR 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. 🎉
  • #​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

📅 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 is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Apr 24, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package [email protected] --precise 0.27.1
    Updating crates.io index
error: failed to select a version for the requirement `strum = "^0.26.3"`
candidate versions found which didn't match: 0.27.1
location searched: crates.io index
required by package `ratatui v0.29.0`
    ... which satisfies dependency `ratatui = "^0.29.0"` (locked to 0.29.0) of package `all-is-cubes-desktop v0.9.0 (/tmp/renovate/repos/github/kpreid/all-is-cubes/all-is-cubes-desktop)`

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Apr 24, 2025
@renovate renovate bot force-pushed the renovate/strum-monorepo branch 5 times, most recently from f620fc9 to a2c5f16 Compare May 3, 2025 03:35
@renovate renovate bot force-pushed the renovate/strum-monorepo branch 4 times, most recently from 2be557c to f2a4019 Compare May 10, 2025 23:35
@renovate renovate bot force-pushed the renovate/strum-monorepo branch 3 times, most recently from 2b1c12a to 8d871e6 Compare May 17, 2025 23:37
@renovate renovate bot force-pushed the renovate/strum-monorepo branch 7 times, most recently from 43233bc to b5f74fd Compare May 28, 2025 17:14
@renovate renovate bot force-pushed the renovate/strum-monorepo branch from b5f74fd to edd7c63 Compare May 28, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants