alice-rs
alice-rs copied to clipboard
Remove failure crate in favor of thiserror
When this project was started failure
was the way to go. However, time has moved on and the current recommendation for error handling seems to be thiserror
. It would be nice to update all crates in this project to the latter. See https://github.com/cbourjau/alice-rs/pull/9#issuecomment-1080019987 for some recent discussions on this topic.
Some additional thoughts: I believe we could leave failure
in for the non-library crates. The structured information thiserror
provides is most useful for library consumers. For applications we can provide the same information as text to the user.
I think the commonly recommended library for applications is anyhow
which depends on thiserror
. I think its fine to only migrate some of the sub-crates for now, though, and leave others still on failure
.