Merged
Conversation
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.8.2→0.9.0Release Notes
shepmaster/snafu (snafu)
v0.9.0Compare Source
Added
WhateverLocalis an alternate toWhateverthat does notimplement or require
SendorSync.Errors that do not use context selectors (e.g. opaque errors,
#[snafu(context(false))]errors, or#[snafu(transparent)]errors) may now be constructed using a generic value when they are
annotated with the
#[snafu(source(from(generic)))]attribute.When using the
unstable-provider-apifeature flag,Reportwillcheck if each error provides a
Location. When it does, theLocationwill be appended to the error message.Fixed
supported.
Changed
Rust 1.65 is now the minimum supported Rust version. This is a
breaking change.
Rust 1.81 is now the default supported Rust version. This is a
breaking change.
WhateverimplementsSendandSync, allowing it to be sentbetween threads. This requires that wrapped errors also implement
SendandSync. This is a breaking change.snafu::Locationhas been replaced with a type alias to thestandard library's
Location(specifically a reference to thattype:
&'static core::panic::Location<'static>). This improvesinteroperability and access to features. This is a breaking
change.
Opaque errors default to allowing construction from any value that
implements
Intofor the wrapped type. The previous behavior can berestored with
#[snafu(source(from(exact)))]. This is a breakingchange.
The internal implementation of
#[snafu]attribute parsing has beenrewritten. This should largely be unnoticeable, but some error
messages and spans have been improved, and memory usage may be
slightly reduced.
Removed
The deprecated
Error::descriptionandError::causemethods areno longer generated.
The
rust_1_61,rust_1_65, andunstable-core-errorfeatureflags have been removed.
When using the
unstable-provider-apifeature flag, the sourceerror is no longer provided by default. This impacts regular and
opaque errors, as well as
WhateverandWhateverLocal.When using the
unstable-provider-apifeature flag, provided valuesmay no longer be chained or have chaining priority assigned.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.