chore(deps): update rust crate anyhow to 1.0.82 - autoclosed #75
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:
1.0
->1.0.82
1.0
->1.0.82
Release Notes
dtolnay/anyhow (anyhow)
v1.0.82
Compare Source
v1.0.81
Compare Source
v1.0.80
Compare Source
v1.0.79
Compare Source
v1.0.78
Compare Source
v1.0.77
Compare Source
anyhow::Error::backtrace
available on stable Rust compilers 1.65+ (#293, thanks @LukasKalbertodt)v1.0.76
Compare Source
unsafe_op_in_unsafe_fn
lint (#329)v1.0.75
Compare Source
v1.0.74
Compare Source
v1.0.73
Compare Source
v1.0.72
Compare Source
v1.0.71
Compare Source
v1.0.70
Compare Source
v1.0.69
Compare Source
v1.0.68
Compare Source
-Zrustdoc-scrape-examples
on docs.rs for nowv1.0.67
Compare Source
context()
is used on anOption
(#280)v1.0.66
Compare Source
context
call (#279)v1.0.65
Compare Source
impl Provider for anyhow::Error
v1.0.64
Compare Source
#[source] anyhow::Error
with thiserror crate (#231)v1.0.63
Compare Source
v1.0.62
Compare Source
cargo
invocations with IDE builds (#261)v1.0.61
Compare Source
v1.0.60
Compare Source
--target
to rustc invocation when deciding about backtrace support (#249, thanks @RalfJung)v1.0.59
Compare Source
no-std
categoryv1.0.58
Compare Source
v1.0.57
Compare Source
log4rs
-specific workaround frombail!
macro implementationv1.0.56
Compare Source
must_use
warning when an Error created byanyhow!
is not used, perhaps because the programmer meant to writebail!
instead (#229)v1.0.55
Compare Source
v1.0.54
Compare Source
ensure!
when the expression involves a negative literal const generic as the first generic argument of a method call (#224)v1.0.53
Compare Source
v1.0.52
Compare Source
v1.0.51
Compare Source
Ok
fnv1.0.50
Compare Source
ensure!
macro (#199, #200, #202, #203, #204, #205, #206)v1.0.49
Compare Source
anyhow::Ok(v)
equivalent toOk::<_, anyhow::Error>(v)
(#192)v1.0.48
Compare Source
Debug
rendering of lhs and rhs inensure!
messages (#193, #194, #195, #196, #197, #198)Example:
v1.0.47
Compare Source
v1.0.46
Compare Source
Support for implicit format args to match println and other std macros (https://rust-lang.github.io/rfcs/2795-format-args-implicit-identifiers.html)
Detect missing fmt arguments at compile time:
anyhow!("{} not found")
(#55)Reduce occurrence of "future cannot be shared between threads safely" in async code using anyhow macros (#186)
v1.0.45
Compare Source
anyhow!
,ensure!
, orbail!
with format args and is built with#![no_std]
or#![no_implicit_prelude]
(#177)v1.0.44
Compare Source
v1.0.43
Compare Source
v1.0.42
Compare Source
v1.0.41
Compare Source
v1.0.40
Compare Source
v1.0.39
Compare Source
Add an opt-in implementation of
Error::backtrace
on stable compilers based on thebacktrace
crate (#143)v1.0.38
Compare Source
v1.0.37
Compare Source
v1.0.36
Compare Source
void*
for round tripping through a C FFI (#132)v1.0.35
Compare Source
Support 1-argument use of
ensure!
(#126)v1.0.34
Compare Source
bail!
macro in preparation for https://github.com/rust-lang/rust/pull/78685 (#120)v1.0.33
Compare Source
anyhow!
,bail!
,ensure!
macros (#114)v1.0.32
Compare Source
impl From<anyhow::Error> for Box<dyn Error + Send + 'static>
(#103)v1.0.31
Compare Source
{:?}
representation (#92)v1.0.30
Compare Source
cargo rustc -vv
(#91, thanks @eoger)v1.0.29
Compare Source
v1.0.28
Compare Source
v1.0.27
Compare Source
Improve documentation of backtrace environment variable combinations (#69)
v1.0.26
Compare Source
v1.0.25
Compare Source
Add no-std support (#53)
In no_std mode, the same API is almost all available and works the same way. To depend on Anyhow in no_std mode, disable our default enabled "std" feature in Cargo.toml. A global allocator is required.
Since the
?
-based error conversions would normally rely on thestd::error::Error
trait which is only available through std, no_std mode will require an explicit.map_err(Error::msg)
when working with a non-Anyhow error type inside a function that returns Anyhow's error type.v1.0.24
Compare Source
v1.0.23
Compare Source
impl AsRef<dyn std::error::Error>
andimpl AsRef<dyn std::error::Error + Send + Sync>
for anyhow::ErrorChain::new
constructorv1.0.22
Compare Source
bail!
orensure!
is invoked with anyhow::Error as the error argument (#46)v1.0.21
Compare Source
Provide DoubleEndedIterator and ExactSizeIterator implementations for anyhow::Chain to assist in custom rendering of cause chains (#45)
v1.0.20
Compare Source
Introduce some {:#} and {:#?} alt formatting representations (#42)
When you print an error object using "{}" or to_string(), only the outermost underlying error or context is printed, not any of the lower level causes. This is exactly as if you had called the Display impl of the error from which you constructed your anyhow::Error.
Failed to read instrs from ./path/to/instrs.json
To print causes as well using anyhow's default formatting of causes, use the alternate selector "{:#}".
Failed to read instrs from ./path/to/instrs.json: No such file or directory (os error 2)
The Debug format "{:?}" includes your backtrace if one was captured. Note that this is the representation you get by default if you return an error from
fn main
instead of printing it explicitly yourself.To see a conventional struct-style Debug representation, use "{:#?}".
If none of the built-in representations are appropriate and you would prefer to render the error and its cause chain yourself, it can be done something like this:
v1.0.19
Compare Source
anyhow!
also under the aliasformat_err!
(#37)v1.0.18
Compare Source
Support downcasting errors with context to the context's type
C
or to the underlying error typeE
(#34)That is, in codebases that rely on downcasting, Anyhow's context now supports both of the following use cases:
Attaching context whose type is insignificant onto errors whose type is used in downcasts.
In other error libraries whose context is not designed this way, it can be risky to introduce context to existing code because new context might break existing working downcasts. In Anyhow, any downcast that worked before adding context will continue to work after you add a context, so you should freely add human-readable context to errors wherever it would be helpful.
Attaching context whose type is used in downcasts onto errors whose type is insignificant.
Some codebases prefer to use machine-readable context to categorize lower level errors in a way that will be actionable to higher levels of the application.
v1.0.17
Compare Source
Context
import (#30)v1.0.16
Compare Source
impl From<anyhow::Error> for Box<dyn std::error::Error + 'static>
(#25)v1.0.15
Compare Source
v1.0.14
Compare Source
v1.0.13
Compare Source
v1.0.12
Compare Source
.context(...)
on a Result (#18)v1.0.11
Compare Source
v1.0.10
Compare Source
derive(Error)
v1.0.9
Compare Source
Context
trait as it is not intended to be implemented outside of anyhowv1.0.8
Compare Source
anyhow!($expr)
v1.0.7
Compare Source
yanked
v1.0.6
Compare Source
v1.0.5
Compare Source
impl From<anyhow::Error> for Box<dyn std::error::Error + Send + Sync + 'static>
(#10)v1.0.4
Compare Source
v1.0.3
Compare Source
.context(...)
and.with_context(|| ...)
on Option<T>v1.0.2
Compare Source
v1.0.1
Compare Source
ensure!
macro (#4, thanks @repi)bail!
(#2, thanks @repi)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.