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.
The SNAFU copy of the Error trait now marks the description and
cause methods as deprecated, following the standard library's
example. This trait is only active when using SNAFU in a no_std
environment and no functional difference is intended.
Removed
The default Display implementation no longer includes the error
text of the source error. This is a breaking change.
The backtraces and unstable-backtraces-impl-std feature flags
have been removed. This is a breaking change. The Backtrace
type is now the standard library's Backtrace type when it is
available.
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 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)
Bumps snafu from 0.7.5 to 0.8.0.
Changelog
Sourced from snafu's changelog.
Commits
db76cb3
Release 0.8.0509abf7
Merge pull request #428 from shepmaster/changelog1dc3d95
Update the changelog and upgrading guide in preparation for 0.83fcc81a
Merge pull request #432 from shepmaster/undo7b8e6a8
Revert "Allow yeeting context selectors to generate errors"c1faaa8
Merge pull request #430 from shepmaster/our-error-deprecatedc5fe470
Mirror std Error's deprecated methods on ourError
traitbea7f27
Merge pull request #426 from shepmaster/std-backtraceae4679e
Usestd::backtrace::Backtrace
as the default backtrace providera239d70
Merge pull request #427 from shepmaster/macro-doc-aliasesDependabot 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