simple-error
is Rust
library that provides a simple Error
type which is backed by a String
. It is used when all you want about the error is an error string.
To use simple-error
, first add this to your Cargo.toml
:
toml
[dependencies]
simple-error = "0.1"
Then, add this to your crate root:
rust
extern crate simple_error;