Cargo update

This commit is contained in:
Harald Hoyer 2018-12-20 16:50:36 +01:00
parent 0abcc99d98
commit dad8c20f0c
2 changed files with 11 additions and 1 deletions

View file

@ -3,6 +3,14 @@ name = "chainerror"
version = "0.1.0" version = "0.1.0"
authors = ["Harald Hoyer <harald@redhat.com>"] authors = ["Harald Hoyer <harald@redhat.com>"]
edition = "2018" edition = "2018"
license = "MIT"
documentation = "https://docs.rs/chainerror"
homepage = "https://haraldh.github.io/chainerror/"
repository = "https://github.com/haraldh/chainerror"
description = "Yet another error boilerplate library."
keywords = ["error"]
categories = ["rust-patterns"]
readme = "README.md"
[features] [features]
default = [ ] default = [ ]

View file

@ -3,6 +3,8 @@
`chainerror` provides an error backtrace like `failure` without doing a real backtrace, so even after you `strip` your `chainerror` provides an error backtrace like `failure` without doing a real backtrace, so even after you `strip` your
binaries, you still have the error backtrace. binaries, you still have the error backtrace.
`chainerror` has no depenendencies!
`chainerror` uses `.source()` of `std::error::Error` along with `line()!` and `file()!` to provide a nice debug error backtrace. `chainerror` uses `.source()` of `std::error::Error` along with `line()!` and `file()!` to provide a nice debug error backtrace.
It encapsulates all types, which have `Display + Debug` and can store the error cause internally. It encapsulates all types, which have `Display + Debug` and can store the error cause internally.