whisperfish / libsignal-protocol-rs

A Rust interface to the Signal Protocol. DEPRECATED in favour of https://github.com/signalapp/libsignal-client ! Signal reimplemented the whole thing in Rust.
https://michael-f-bryan.github.io/libsignal-protocol-rs
GNU General Public License v3.0
44 stars 10 forks source link

Replace failure by thiserror/anyhow #70

Closed gferon closed 3 years ago

gferon commented 3 years ago

InternalError was already using thiserror, so this commit finishes transitioning away from failure which means errors can now be better handled in downstream code.

I forgot to mention that the most useful part for me here, is that Error::IoError implements From<std::io::Error> as most stores trait implementations will have to deal with some I/O operations.

TODO:

gferon commented 3 years ago

@Michael-F-Bryan I think this is ready!