We have been too liberal of our use of anyhow. For any pub function in our libraries, we should be using thiserror instead of anyhow, to get more type safety and explicitness of what can go wrong.
Internal use of anyhow in a crate is less bad, but would also be good to change to thiserror.
anyhow should mostly be used in high-level crates (binaries) to easily summarize errors coming from many different places without having to create too many error enums
We have been too liberal of our use of
anyhow
. For anypub
function in our libraries, we should be usingthiserror
instead ofanyhow
, to get more type safety and explicitness of what can go wrong.Internal use of
anyhow
in a crate is less bad, but would also be good to change tothiserror
.anyhow
should mostly be used in high-level crates (binaries) to easily summarize errors coming from many different places without having to create too many errorenum
s