[PR #521] [MERGED] Update strum requirement from 0.26.1 to 0.27.1 #510

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

📋 Pull Request Information

Original PR: https://github.com/ramsayleung/rspotify/pull/521
Author: @dependabot[bot]
Created: 2/17/2025
Status: Merged
Merged: 2/17/2025
Merged by: @ramsayleung

Base: masterHead: dependabot/cargo/strum-0.27.1


📝 Commits (1)

  • 3c4d1fe Update strum requirement from 0.26.1 to 0.27.1

📊 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.

Release notes

Sourced from strum's releases.

v0.27.1

What's Changed

New Contributors

Full Changelog: https://github.com/Peternator7/strum/compare/v0.27.0...v0.27.1

Changelog

Sourced from strum's changelog.

0.27.1

  • #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 }

0.27.0

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.

0.26.4 (strum_macros)

  • #360: Fixes bug introduced with new string interpolation feature where

... (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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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/521 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 2/17/2025 **Status:** ✅ Merged **Merged:** 2/17/2025 **Merged by:** [@ramsayleung](https://github.com/ramsayleung) **Base:** `master` ← **Head:** `dependabot/cargo/strum-0.27.1` --- ### 📝 Commits (1) - [`3c4d1fe`](https://github.com/ramsayleung/rspotify/commit/3c4d1fe3d8fe21f275834dea422b34d04d9d46f5) Update strum requirement from 0.26.1 to 0.27.1 ### 📊 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>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Peternator7/strum/releases">strum's releases</a>.</em></p> <blockquote> <h2>v0.27.1</h2> <h2>What's Changed</h2> <ul> <li>Fix docsrs build error regarding IntoDiscriminant trait by <a href="https://github.com/tveness"><code>@​tveness</code></a> in <a href="https://redirect.github.com/Peternator7/strum/pull/414">Peternator7/strum#414</a></li> <li>Update docs to actually include new features by <a href="https://github.com/Peternator7"><code>@​Peternator7</code></a> in <a href="https://redirect.github.com/Peternator7/strum/pull/417">Peternator7/strum#417</a></li> <li>Use _ to silence warnings about unused fields by <a href="https://github.com/Peternator7"><code>@​Peternator7</code></a> in <a href="https://redirect.github.com/Peternator7/strum/pull/418">Peternator7/strum#418</a></li> <li>Add <code>#[strum(transparent)]</code> attribute by <a href="https://github.com/bobozaur"><code>@​bobozaur</code></a> in <a href="https://redirect.github.com/Peternator7/strum/pull/331">Peternator7/strum#331</a></li> <li>Fix warnings in tests from variants by <a href="https://github.com/Peternator7"><code>@​Peternator7</code></a> in <a href="https://redirect.github.com/Peternator7/strum/pull/419">Peternator7/strum#419</a></li> <li>Peternator7/fix transparent typo by <a href="https://github.com/Peternator7"><code>@​Peternator7</code></a> in <a href="https://redirect.github.com/Peternator7/strum/pull/421">Peternator7/strum#421</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/tveness"><code>@​tveness</code></a> made their first contribution in <a href="https://redirect.github.com/Peternator7/strum/pull/414">Peternator7/strum#414</a></li> <li><a href="https://github.com/bobozaur"><code>@​bobozaur</code></a> made their first contribution in <a href="https://redirect.github.com/Peternator7/strum/pull/331">Peternator7/strum#331</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/Peternator7/strum/compare/v0.27.0...v0.27.1">https://github.com/Peternator7/strum/compare/v0.27.0...v0.27.1</a></p> </blockquote> </details> <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.27.1</h2> <ul> <li> <p><a href="https://redirect.github.com/Peternator7/strum/pull/414">#414</a>: Fix docrs build error.</p> </li> <li> <p><a href="https://redirect.github.com/Peternator7/strum/pull/417">#417</a>: Mention <code>parse_error_ty</code> and <code>parse_error_fn</code> that had been left out of the docs accidentally.</p> </li> <li> <p><a href="https://redirect.github.com/Peternator7/strum/pull/421">#421</a><a href="https://redirect.github.com/Peternator7/strum/pull/331">#331</a>: Implement <code>#[strum(transparent)]</code> attribute on <code>IntoStaticStr</code>, <code>Display</code> and <code>AsRefStr</code> that forwards the implmenentation to the inner value. Note that for static strings, the inner value must be convertible to an <code>&amp;'static str</code>.</p> <pre lang="rust"><code>#[derive(strum::Display)] enum SurveyResponse { Yes, No, #[strum(transparent)] Other(String) } <p>fn main() { let response = SurveyResponse::Other(&quot;It was good&quot;.into()); println!(&quot;Question: Did you have fun?&quot;); println!(&quot;Answer: {}&quot;, response); // prints: Answer: It was good } </code></pre></p> </li> </ul> <h2>0.27.0</h2> <h3>Highlights</h3> <ul> <li><a href="https://redirect.github.com/Peternator7/strum/pull/407">#407</a>: <code>Display</code> is now correctly derived in <code>[no_std]</code> projects.</li> <li><a href="https://redirect.github.com/Peternator7/strum/pull/402">#402</a>: <code>EnumIter</code> now implements <code>Send + Sync</code></li> <li><a href="https://redirect.github.com/Peternator7/strum/pull/400">#400</a>: <code>EnumTryAs</code> now handles attributes on variant fields correctly.</li> <li><a href="https://redirect.github.com/Peternator7/strum/pull/398">#398</a>: <code>strum</code> is now on rust 2021</li> <li><a href="https://redirect.github.com/Peternator7/strum/pull/391">#391</a>: <code>EnumProperties</code> correctly implements <code>get_bool</code> and <code>get_int</code> finally. 🎉</li> <li><a href="https://redirect.github.com/Peternator7/strum/pull/380">#380</a>: <code>FromString</code> now supports 2 additional attributes, <code>parse_error_ty</code> and <code>parse_error_fn</code> that can be added to use a custom error type rather than the default strum error message. <ul> <li><a href="https://redirect.github.com/Peternator7/strum/pull/410">#410</a>: These attributes accept a <code>Path</code> rather than a <code>String</code> to improve behavior with rust-analyzer.</li> </ul> </li> </ul> <h3>Breaking Changes</h3> <ul> <li><a href="https://redirect.github.com/Peternator7/strum/pull/384">#384</a>: MSRV is now 1.66.1</li> <li><a href="https://redirect.github.com/Peternator7/strum/pull/391">#391</a>: <code>EnumProperties</code> doesn't provide default implementations anymore. This would have required you to manually implement this trait which should be very uncommon.</li> </ul> <h2>0.26.4 (strum_macros)</h2> <ul> <li><a href="https://redirect.github.com/Peternator7/strum/pull/360">#360</a>: Fixes bug introduced with new string interpolation feature where</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Peternator7/strum/commit/85d0ae61d149472d971e76fd08e6bd9c314ec4b7"><code>85d0ae6</code></a> Update versions to 0.27.1 everywhere</li> <li><a href="https://github.com/Peternator7/strum/commit/1576a7ab599b5adffa82fb9234e561a7aeea5ed0"><code>1576a7a</code></a> Peternator7/fix transparent typo (<a href="https://redirect.github.com/Peternator7/strum/issues/421">#421</a>)</li> <li><a href="https://github.com/Peternator7/strum/commit/23d29527cde7f389aa2dc17d3e8f01380cfeeccd"><code>23d2952</code></a> Create ci.yml</li> <li><a href="https://github.com/Peternator7/strum/commit/9c5fb56b4b6b7b0db43c9fa8e8a0621b544e209a"><code>9c5fb56</code></a> Fix warnings in tests from variants that need to exist, but don't get used (#...</li> <li><a href="https://github.com/Peternator7/strum/commit/030d7b5b6a42599359887a30bc2c62000f558646"><code>030d7b5</code></a> Merge branch 'bobozaur-258-transparent-attr'</li> <li><a href="https://github.com/Peternator7/strum/commit/7606dd598215e43a1dca004722b42816a60baa01"><code>7606dd5</code></a> Do some light refactoring to combine similiar code paths together</li> <li><a href="https://github.com/Peternator7/strum/commit/b6a357d5ba991555b57530160ed82bd80aed1200"><code>b6a357d</code></a> Merge branch '258-transparent-attr' of <a href="https://github.com/bobozaur/strum">https://github.com/bobozaur/strum</a> into...</li> <li><a href="https://github.com/Peternator7/strum/commit/24e7a4fdddd769d4ed2c84de625b75d06b545b63"><code>24e7a4f</code></a> Use _ to silence warnings (<a href="https://redirect.github.com/Peternator7/strum/issues/418">#418</a>)</li> <li><a href="https://github.com/Peternator7/strum/commit/4c1f6c1015d336f9732ea2f5aa96f21020ae2d4b"><code>4c1f6c1</code></a> Update docs to actually include new features (<a href="https://redirect.github.com/Peternator7/strum/issues/417">#417</a>)</li> <li><a href="https://github.com/Peternator7/strum/commit/9db3c4dc9b6f585aeb9f5f15f9cc18b6cf4fd780"><code>9db3c4d</code></a> Replace IntoDiscriminant with EnumDiscriminants in macro exports, as (<a href="https://redirect.github.com/Peternator7/strum/issues/414">#414</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Peternator7/strum/compare/v0.26.1...v0.27.1">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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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:25:00 +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#510
No description provided.