Replies: 1 comment 1 reply
-
SNAFU is a transparent error-derive crate, just like thiserror (the title suggests that you might be confusing it with anyhow, which AFAIK we shouldn't have any dependencies on?). As for why we use both.. that is mostly a historical accident. There was some discussion in #453 that ended up in a loose consensus to migrate towards SNAFU, but nobody has taken the reins on actually doing that yet. PRs would be welcome there.
This is for https://docs.rs/snafu/0.6.10/snafu/futures/trait.TryFutureExt.html and https://docs.rs/snafu/0.6.10/snafu/futures/trait.TryStreamExt.html, which add error handling helpers to SNAFU 0.7.0 (currently in beta) seems to have upgraded to pin-project 1.0, fwiw: shepmaster/snafu#255 |
Beta Was this translation helpful? Give feedback.
-
kube-runtime has a dependency on snafu; Kube uses this
thiserror
. Generally, it seems preferable for libraries to avoid 'framework' error types like those provided by snafu. Is there any interest in a PR that removes the dependency on snafu?I only noticed this because cargo-deny flags that snafu pulls in older versions of pin-project. (It's a bit surprising to me that an error framework even needs to worry about pinning at all):
Beta Was this translation helpful? Give feedback.
All reactions