The macro no longer generates invalid code when implicitly-generated
types (such as backtraces) were used in conjunction with
#[snafu(source(from))] and the type before transformation does not
implement std::error::Error.
[0.7.2] - 2022-10-09
Added
Report can be returned from main or test functions to provide a
user-friendly display of errors.
A cheat sheet for the most common #[snafu(...)] attribute usages
has been added to the Snafu macro's documentation.
Optional support for using the standard library's
std::backtrace::Backtrace type via the backtraces-impl-std
feature flag.
Optional support for implementing the Provider API using the
std::error::Error::provide method via the unstable-provider-api
feature flag.
Optional support for implementing the core::error::Error trait
instead of std::error::Error via the unstable-core-error feature
flag.
GenerateImplicitData has a new method generate_with_source.
Changed
ErrorCompat::iter_chain and ChainCompat are now available in
no_std environments.
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 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.6.10 to 0.7.4.
Changelog
Sourced from snafu's changelog.
... (truncated)
Commits
00bba4b
Release 0.7.4d65f869
Update the changelogf32fa32
Merge pull request #369 from shepmaster/typof8a9a90
Remove typobd3c97c
Merge pull request #365 from shepmaster/clean-reported78681
Automatically detect and remove nested error messages in Report outpute40bcca
Extract assert_contains macroe491da4
Extract a set-exactly-once boolean value35dcf44
Release 0.7.3e3bc93c
Update the changelogDependabot 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 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)