Error types that use constant generics are now supported.
[0.8.0] - 2023-12-28
Added
snafu(transparent) allows creating compound error types that act
as if they were not present, delegating thier Display and Error
implementations to the source error. This is useful when aggregating
smaller errors that already completely explain the failure.
ResultExt::boxed and ResultExt::boxed_local are available to
convert an error value into an owned trait object. This is useful
when an error type is a generic controlled by the caller.
Changed
Rust 1.56 is now the minimum supported Rust version. This is a
breaking change.
Rust 1.65 is now the default supported Rust version. This is a
breaking change.
The item type of the ChainCompat iterator is now &'a (dyn Error + 'b) to allow downcasting the error trait object to a concrete
type. This is a breaking change.
Error fields marked location are no longer automatically
implicitly created. This is a breaking change.
Adding #[snafu] attributes to the field of a tuple struct are now
errors. This is a breaking change.
You can trigger a rebase of this PR 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 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)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Updates the requirements on snafu to permit the latest version.
Changelog
Sourced from snafu's changelog.
... (truncated)
Commits
b944667
Release 0.8.250e7db5
b333c5487b53529e27337fa6cd34d22ec205640de9cef85
Merge pull request #443 from shepmaster/report-return-inference76cb8a4
Refactor to highlight similarities and differencesd9fd1bc
Improve how thereport
macro handles return type inferencec74192b
Test report macro with tokio and async-std752e2f7
Merge pull request #442 from chanced/fix-with-generic-from-string61388f5
Add missing generics and trait bounds toFromString
impl941abc5
Release 0.8.1b333c54
Update the changelogYou can trigger a rebase of this PR 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