Support the same Path field being repeated in both Debug and Display representation in error message (#383)
Improve error message when a format trait used in error message is not implemented by some field (#384)
2.0.2
Fix hang on invalid input inside #[error(...)] attribute (#382)
2.0.1
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)
➖ Tie async-process dependency to async-io feature, instead of the target OS. This fixes
tokio users (a big majority of our users) needlessly depending on it along with a bunch of its
dependencies.
🔊 Don't log error on broadcasting on generic message channel. Otherwise, we just end up with a
lot of noise in the logs.
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 rust group with 4 updates: tokio, anyhow, thiserror and zbus.
Updates
tokio
from 1.41.0 to 1.41.1Release notes
Sourced from tokio's releases.
Commits
bb7ca75
chore: prepare Tokio v1.41.1 (#6959)4a34b77
metrics: fix bug with wrong number of buckets for the histogram (#6957)8897885
docs: fix mismatched backticks in CONTRIBUTING.md (#6951)0dbdd19
ci: update cargo-check-external-types to 0.1.13 (#6949)94e55c0
net: fix typo inTcpStream
internal comment (#6944)4468f27
metrics: fixed flakyworker_steal_count
test (#6932)070a825
metrics: removed race condition from global_queue_depth_multi_thread test (#6...946401c
net: displaynet
requirement fornet::UdpSocket
in docs (#6938)0c01fd2
ci: use patched version of cargo-check-external-types to fix CI failure (#6937)ebe2416
ci: use cargo deny (#6931)Updates
anyhow
from 1.0.92 to 1.0.93Release notes
Sourced from anyhow's releases.
Commits
713bda9
Release 1.0.93f91c247
Merge pull request #391 from dtolnay/thiserror2a3901c
Isolate old rustc version tests from needing anyhow dev-dependencies in lockfile3ca2cdd
Update dev-dependencies to thiserror v2Updates
thiserror
from 1.0.67 to 2.0.3Release notes
Sourced from thiserror's releases.
... (truncated)
Commits
15fd26e
Release 2.0.37046023
Simplify how has_bonus_display is accumulated9cc1d0b
Merge pull request #384 from dtolnay/nowrap1d040f3
Use Var wrapper only for Pointer formatting6a6132d
Extend no-display ui test to cover another fmt traita061beb
Merge pull request #383 from dtolnay/both6388293
Support Display and Debug of same path in error messagedc0359e
Defer binding_value construction520343e
Add test of Debug and Display of paths49be39d
Release 2.0.2Updates
zbus
from 5.1.0 to 5.1.1Release notes
Sourced from zbus's releases.
Commits
fdca271
🔖 zb,zm: Release 5.1.199f1664
Merge pull request #1130 from zeenix/better-git-hooks-suggestion9c81c4b
👷 CONTRIBUTING: Suggest to copy the git hooks3aac8f4
⬆️ micro: Update tokio to v1.41.1538c974
Merge pull request #1128 from zeenix/split-method8d0a06c
♻️ zb: Split a big internal method a bit40ea8c1
Merge pull request #1127 from zeenix/fix-bench-cie7122cf
💚 CI: Bump benchmarks alert threshold to 200%87ba7f9
💚 CI: benchmarks job shouldn't fail on alert22e772f
Merge pull request #1126 from zeenix/async-process-depDependabot 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