Support errors that contain a dynamically sized final field (#375)
Improve inference of trait bounds for fields that are interpolated multiple times in an error message (#377)
2.0.0
Breaking changes
Referencing keyword-named fields by a raw identifier like {r#type} inside a format string is no longer accepted; simply use the unraw name like {type} (#347)
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.
Tuple structs and tuple variants can no longer use numerical {0}{1} 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 (#354)
#[derive(Error, Debug)]
#[error("ambiguous: {0} {}", $N)]
// ^^^ Not allowed, use #[error("... {0} {n}", n = $N)]
pub struct TupleError(i32);
Code containing invocations of thiserror's derive(Error) must now have a direct dependency on the thiserror crate regardless of the error data structure's contents (#368, #369, #370, #372)
Features
Support disabling thiserror's standard library dependency by disabling the default "std" Cargo feature: thiserror = { version = "2", default-features = false } (#373)
Support using r#source as field name to opt out of a field named "source" being treated as an error's Error::source() (#350)
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the deps group with 3 updates: file-format, thiserror and hickory-resolver.
Updates
file-format
from 0.25.0 to 0.26.0Release notes
Sourced from file-format's releases.
Changelog
Sourced from file-format's changelog.
Commits
bb09c0f
Merge pull request #67 from mmalecot/deve35b896
Add release date for 0.26360198b
Fix order in changelog8a2c505
Fix mistake in crate docsea5b00b
Add tests and fixtures for id3, mp3 and flac file formats1938699
Add ID3v2 format support and improves MP3/FLAC detectionUpdates
thiserror
from 1.0.68 to 2.0.1Release notes
Sourced from thiserror's releases.
... (truncated)
Commits
4066d53
Release 2.0.18956be2
Merge pull request #380 from dtolnay/var16f8dc1
Wrap interpolated variables to forward Pointer correctly46586dd
Add test that {:p} prints the right address5dfd2cc
Merge pull request #379 from dtolnay/bindingfb59da6
Resolve let_and_return clippy lint3ee0a4d
Emit rebinding only for interpolations that refer to a fieldf4d5c2a
Check infinite recursion as soon as Display bound is known8a77dea
Parse trait bound before deciding name for local binding24e7f87
Clean up formatvar identifier constructionUpdates
hickory-resolver
from 0.25.0-alpha.2 to 0.25.0-alpha.3Release notes
Sourced from hickory-resolver's releases.
... (truncated)
Changelog
Sourced from hickory-resolver's changelog.
... (truncated)
Commits
3a828ab
Bump dependency version for internal dependencies40201a8
Prepare 0.25.0-alpha.3 release1f6b846
proto: replace remaining KeyPair usage with RsaSigningKey29d259c
proto: replace KeyPair::EC variant with EcSigningKey8f6aebc
proto: replace KeyPair::ECDSA variant with EcdsaSigningKeyb147fb7
proto: replace KeyPair:ED25519 variant with Ed25519SigningKeya17221c
proto: rework DNSSEC tests to avoid generic encodingaa9f025
proto: yield trait object from decode_key()a23abc6
proto: take reference to keys in PublicKeyBuf constructorsc9ad508
proto: define SigningKey traitDependabot 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