dependabot[bot] opened a new pull request, #45: URL: https://github.com/apache/avro-rs/pull/45
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.68 to 2.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/dtolnay/thiserror/releases">thiserror's releases</a>.</em></p> <blockquote> <h2>2.0.0</h2> <h2>Breaking changes</h2> <ul> <li> <p>Referencing keyword-named fields by a raw identifier like <code>{r#type}</code> inside a format string is no longer accepted; simply use the unraw name like <code>{type}</code> (<a href="https://redirect.github.com/dtolnay/thiserror/issues/347">#347</a>)</p> <p>This aligns thiserror with the standard library's formatting macros, which gained support for implicit argument capture later than the release of this feature in thiserror 1.x.</p> <pre lang="rust"><code>#[derive(Error, Debug)] #[error("... {type} ...")] // Before: {r#type} pub struct Error { pub r#type: Type, } </code></pre> </li> <li> <p>Trait bounds are no longer inferred on fields whose value is shadowed by an explicit named argument in a format message (<a href="https://redirect.github.com/dtolnay/thiserror/issues/345">#345</a>)</p> <pre lang="rust"><code>// Before: impl<T: Octal> Display for Error<T> // After: impl<T> Display for Error<T> #[derive(Error, Debug)] #[error("{thing:o}", thing = "...")] pub struct Error<T> { thing: T, } </code></pre> </li> <li> <p>Tuple structs and tuple variants can no longer use numerical <code>{0}</code> <code>{1}</code> access at the same time as supplying extra positional arguments for a format message, as this makes it ambiguous whether the number refers to a tuple field vs a different positional arg (<a href="https://redirect.github.com/dtolnay/thiserror/issues/354">#354</a>)</p> <pre lang="rust"><code>#[derive(Error, Debug)] #[error("ambiguous: {0} {}", $N)] // ^^^ Not allowed, use #[error("... {0} {n}", n = $N)] pub struct TupleError(i32); </code></pre> </li> <li> <p>Code containing invocations of thiserror's <code>derive(Error)</code> must now have a direct dependency on the <code>thiserror</code> crate regardless of the error data structure's contents (<a href="https://redirect.github.com/dtolnay/thiserror/issues/368">#368</a>, <a href="https://redirect.github.com/dtolnay/thiserror/issues/369">#369</a>, <a href="https://redirect.github.com/dtolnay/thiserror/issues/370">#370</a>, <a href="https://redirect.github.com/dtolnay/thiserror/issues/372">#372</a>)</p> </li> </ul> <h2>Features</h2> <ul> <li> <p>Support disabling thiserror's standard library dependency by disabling the default "std" Cargo feature: <code>thiserror = { version = "2", default-features = false }</code> (<a href="https://redirect.github.com/dtolnay/thiserror/issues/373">#373</a>)</p> </li> <li> <p>Support using <code>r#source</code> as field name to opt out of a field named "source" being treated as an error's <code>Error::source()</code> (<a href="https://redirect.github.com/dtolnay/thiserror/issues/350">#350</a>)</p> <pre lang="rust"><code>#[derive(Error, Debug)] #[error("{source} ==> {destination}")] pub struct Error { r#source: char, destination: char, </code></pre> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/dtolnay/thiserror/commit/6097d61b5878c4eca29be1cb0d7f96268309dd84"><code>6097d61</code></a> Release 2.0.0</li> <li><a href="https://github.com/dtolnay/thiserror/commit/40113bd4b53f2a027f26558c90e9984168eb683b"><code>40113bd</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/thiserror/issues/373">#373</a> from dtolnay/nostd</li> <li><a href="https://github.com/dtolnay/thiserror/commit/d8ed5fbc2f7476430ff8e50b37f466638cd732f3"><code>d8ed5fb</code></a> Allow disabling std dependency on 1.81+</li> <li><a href="https://github.com/dtolnay/thiserror/commit/8277ec4a734ea98c01228d7a970d591ffd9efbe8"><code>8277ec4</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/thiserror/issues/372">#372</a> from dtolnay/stdbacktrace</li> <li><a href="https://github.com/dtolnay/thiserror/commit/d6d896df4c63fcb7b7c34aad5f5f049bf6cfab3b"><code>d6d896d</code></a> Access Backtrace exclusively through ::thiserror</li> <li><a href="https://github.com/dtolnay/thiserror/commit/d14adfbb60eb19275d60faffcac4372f100bb2cb"><code>d14adfb</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/thiserror/issues/371">#371</a> from dtolnay/coreprovider</li> <li><a href="https://github.com/dtolnay/thiserror/commit/2e99c515f31e99b96c6a4b91ebefe8c798333ece"><code>2e99c51</code></a> Drop Provider API support in pre-1.81 nightlies</li> <li><a href="https://github.com/dtolnay/thiserror/commit/bf3d6f3f48519f33bc80ca1055d80be45f16d826"><code>bf3d6f3</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/thiserror/issues/370">#370</a> from dtolnay/stderror</li> <li><a href="https://github.com/dtolnay/thiserror/commit/e0e994314b273f9410243f692ab0925ca039ba3a"><code>e0e9943</code></a> Access Error trait exclusively through ::thiserror</li> <li><a href="https://github.com/dtolnay/thiserror/commit/db7825e956b383d2bd2f60013ef482c2ad0ccec7"><code>db7825e</code></a> Merge pull request <a href="https://redirect.github.com/dtolnay/thiserror/issues/369">#369</a> from dtolnay/stdpath</li> <li>Additional commits viewable in <a href="https://github.com/dtolnay/thiserror/compare/1.0.68...2.0.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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> -- 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-unsubscr...@avro.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org