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.
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
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.1.
Changelog
Sourced from snafu's changelog.
... (truncated)
Commits
941abc5
Release 0.8.1b333c54
Update the changelogc5433a6
Merge pull request #438 from shepmaster/const-generic1935cc3
Support errors with const genericsa88aac5
Include attributes on lifetimes generics7782409
Remove unneeded explicit type561ed8a
Uselifetimes
method instead of matching ourselves3b5ca06
Merge pull request #439 from shepmaster/maintd167ebd
Avoid warning about unused tuple struct fields3473e41
Merge pull request #434 from shepmaster/when-the-date-isDependabot 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