You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by GitBox <gi...@apache.org> on 2021/11/21 17:08:11 UTC

[GitHub] [avro] dependabot[bot] opened a new pull request #1408: Update strum requirement from 0.21.0 to 0.23.0 in /lang/rust

dependabot[bot] opened a new pull request #1408:
URL: https://github.com/apache/avro/pull/1408


   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.23.0</h2>
   <ul>
   <li>
   <p><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/185">#185</a> Adds the <code>FromRepr</code> derive that adds a <code>from_repr(x: usize) -&gt; Option&lt;Self&gt;</code>
   method to your enum. This lets you convert integer values to your enum. If you specify a #[repr(..)] attribute on your enum, or use
   an explicit discriminant, this will be incorporated into the derive.</p>
   <ul>
   <li><code>from_repr</code> will be <code>const</code> if you use a recent rust version.</li>
   <li>This cannot be a trait method currently because only inherent methods support <code>const</code>.</li>
   </ul>
   </li>
   <li>
   <p><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/186">#186</a> Automatically implement <code>TryFrom&lt;str&gt;</code> for enums that implement <code>EnumString</code>.
   This is only enabled for rustc &gt;= 1.34 which is when `TryFrom was stabilized.</p>
   <ul>
   <li>This is a small breaking change. If you had manually implemented <code>TryFrom&lt;str&gt;</code> for your enum, this will cause a conflict. You
   can probably remove your manual implementation.</li>
   </ul>
   </li>
   <li>
   <p><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/189">#189</a> Use <code>core::result::Result</code> instead of <code>std::result::Result</code>. This should be
   more portable in no-std environments.</p>
   </li>
   </ul>
   <h2>0.22.0</h2>
   <ul>
   <li>
   <p><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/180">#180</a>: Deprecates <code>ToString</code> derive. You should use <code>Display</code>
   instead.</p>
   </li>
   <li>
   <p><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/178">#178</a>: Deprecates AsStaticStr. This has been undocumented for a while.
   The recommended method is to derive <code>IntoStaticStr</code> instead.</p>
   </li>
   <li>
   <p><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/171">#171</a>: Improve <code>no-std</code> support.</p>
   </li>
   <li>
   <p><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/170">#170</a>: enable changing the path to strum traits. This is necessary
   if you re-export strum as a submodule in another crate.</p>
   </li>
   </ul>
   <h2>0.21.1</h2>
   <ul>
   <li><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/164">#164</a> Improve compatibility with older versions of <code>syn</code>.</li>
   </ul>
   <h2>0.21.0</h2>
   <ul>
   <li>
   <p>Replace <code>std::</code> with <code>core::</code> to support no-std projects. <a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/145">#145</a></p>
   </li>
   <li>
   <p><strong>Breaking Changes</strong></p>
   <ul>
   <li>MSRV is updated to 1.32 because <code>heck</code> does not work in <code>1.31.1</code> anymore. Rust 1.32 came out Jan 2019 so hopefully
   teams have moved to an equal or newer version.</li>
   <li><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/149">#149</a> Remove the &quot;rename&quot; feature. In Rust 2018, macros should be
   imported using a qualified path to avoid collisions. <code>strum_macros::EnumString</code> rather than using the &quot;Rename&quot;
   feature to avoid collisions.</li>
   <li><a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/160">#160</a> enum messages: Make the returned values all 'static
   <ul>
   <li>It is unlikely this will break anyone, but the new signature for functions generated by EnumMessage
   is <code>fn get_message(&amp;self) -&gt; Option&lt;&amp;'static str&gt;</code>.</li>
   </ul>
   </li>
   </ul>
   </li>
   <li>
   <p>Added support for ascii_case_insensitive string comparisons. <a href="https://github-redirect.dependabot.com/Peternator7/strum/pull/157">#157</a>
   This feature allows <code>FromString</code> impls to match strings that differ in case from the expected variant.</p>
   </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>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [avro] martin-g merged pull request #1408: Update strum requirement from 0.21.0 to 0.23.0 in /lang/rust

Posted by GitBox <gi...@apache.org>.
martin-g merged pull request #1408:
URL: https://github.com/apache/avro/pull/1408


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org