cassandra-rs icon indicating copy to clipboard operation
cassandra-rs copied to clipboard

[0.16] Move off error_chain

Open kw217 opened this issue 4 years ago • 2 comments

error_chain was great, but it's a bit outdated now. We should move to anyhow/thiserror or other modern error approach.

kw217 avatar Jan 18 '21 16:01 kw217

I've just started trying this library and noticed that I can't use the ? operator with the Result type I normally use in my projects (which comes from eyre). I get errors saying some Error type (one defined by the error_chain macro I assume) doesn't implement the Sync trait. What do you think about using eyre? Or maybe error-stack once it's possible to use without the nightly toolchain.

EDIT: Now that I think about it, it might not be a lot more beneficial to use eyre over anyhow so maybe that will be just fine.

zihadmahiuddin avatar Jul 16 '22 04:07 zihadmahiuddin

Error handling is still quite an active area in Rust; whoever picks this up should take a careful look at the landscape before choosing a library. It should be mature and widely used, and ideally on track to becoming (de-facto) "standard".

kw217 avatar Aug 04 '22 08:08 kw217