rocket-errors
A crate that can handle anyhow
and eyre
on Rocket v0.5+.
Usage example
Please see actual examples in the /examples
directory.
anyhow
use ;
use anyhow;
async
eyre
use ;
use eyre;
async
Install
anyhow
anyhow
is turned on by default. You just need to add a dependency to this crate:
rocket-errors = { version = "0.1" }
eyre
Using eyre
is optional. You would like to use it, you need to add a dependency to this crate with a feature flag.
rocket-errors = { version = "0.1", features = ["eyre"] }
License
This project is licensed under the MIT license.