[PR #430] [MERGED] Update strum requirement from 0.24.0 to 0.25.0 #450

Closed
opened 2026-02-27 20:24:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ramsayleung/rspotify/pull/430
Author: @dependabot[bot]
Created: 7/3/2023
Status: Merged
Merged: 7/3/2023
Merged by: @ramsayleung

Base: masterHead: dependabot/cargo/strum-0.25.0


📝 Commits (1)

  • db74ebd Update strum requirement from 0.24.0 to 0.25.0

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 rspotify-model/Cargo.toml (+1 -1)

📄 Description

Updates the requirements on strum to permit the latest version.

Changelog

Sourced from strum's changelog.

0.25.0

  • #276. Fixes #275 and #281. Not sure exactly why this broke, perhaps incompatibilities between syn 1 and 2. PR fixes the issue by only looking at attributes of the "list" type [attr(item, item)].

0.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,
    }
    

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ramsayleung/rspotify/pull/430 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 7/3/2023 **Status:** ✅ Merged **Merged:** 7/3/2023 **Merged by:** [@ramsayleung](https://github.com/ramsayleung) **Base:** `master` ← **Head:** `dependabot/cargo/strum-0.25.0` --- ### 📝 Commits (1) - [`db74ebd`](https://github.com/ramsayleung/rspotify/commit/db74ebdfb8aa62940495f1f4e375450b02e83bca) Update strum requirement from 0.24.0 to 0.25.0 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `rspotify-model/Cargo.toml` (+1 -1) </details> ### 📄 Description Updates the requirements on [strum](https://github.com/Peternator7/strum) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Peternator7/strum/blob/master/CHANGELOG.md">strum's changelog</a>.</em></p> <blockquote> <h2>0.25.0</h2> <ul> <li><a href="https://redirect.github.com/Peternator7/strum/pull/276">#276</a>. Fixes <a href="https://redirect.github.com/Peternator7/strum/issues/275">#275</a> and <a href="https://redirect.github.com/Peternator7/strum/issues/281">#281</a>. Not sure exactly why this broke, perhaps incompatibilities between syn 1 and 2. PR fixes the issue by only looking at attributes of the &quot;list&quot; type <code>[attr(item, item)]</code>.</li> </ul> <h2>0.25.0</h2> <h3>Breaking Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/Peternator7/strum/pull/261">#261</a> 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.</p> </li> <li> <p><a href="https://redirect.github.com/Peternator7/strum/pull/270">270</a> Change the <code>to_string</code> behavior when using <code>default</code>. Now, when using <code>default</code>, the <code>display</code> method will return the display version of the value contained in the enum rather than the name of the variant.</p> <pre lang="rust"><code>#[derive(strum::Display)] enum Color { Red, Blue, Green, #[strum(default)] Other(String) } <p>fn main() { // This used to print &quot;Other&quot;, now it prints &quot;Purple&quot; assert_eq!(Color::Other(&quot;Purple&quot;.to_string()).to_string(), &quot;Purple&quot;); } </code></pre></p> <p>If you want the old behavior, you can use the <code>to_string</code> attribute to override this behavior. See the PR for an example.</p> </li> <li> <p><a href="https://redirect.github.com/Peternator7/strum/pull/268">268</a> Update the behavior of <code>EnumCount</code> to exclude variants that are <code>disabled</code>. This is a breaking change, but the behavior makes it more consistent with other methods.</p> </li> </ul> <h3>New Features</h3> <ul> <li> <p><a href="https://redirect.github.com/Peternator7/strum/pull/257">#257</a> This PR adds the <code>EnumIs</code> macro that automatically implements <code>is_{variant_name}</code> methods for each variant.</p> <pre lang="rust"><code>#[derive(EnumIs)] enum Color { Red, Blue, Green, } </code></pre> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/Peternator7/strum/commits">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:24:47 +03:00
Sign in to join this conversation.
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
starred/rspotify#450
No description provided.