error-chain
error-chain copied to clipboard
Error boilerplate for Rust
https://travis-ci.com/rust-lang-nursery/error-chain/jobs/240939141#L293 error: a method with this name may be added to the standard library in the future --> src/lib.rs:657:41 | 657 | if let Some(backtrace) = self.0.backtrace() { | ^^^^^^^^^...
https://travis-ci.com/rust-lang-nursery/error-chain/jobs/240939148#L279
Hello, the current `rust-lang-nursery` organisation is considered deprecated, and the Rust Programming Language organisation is trying to consolidate managing Rust's GitHub organisations, as such we'd like you to consider moving...
Fixes #134. Syntax is same as the `types` block: ```rust error_chain! { derive { Hash, Eq, PartialEq } } ``` The only difference is there is no semicolon at the...
For example: ``` errors { #[doc = "Response not complete, first is protocol status and second is app status, see fastcgi protocol."] EndRequest(protocol_status: ProtocolStatus, app_status: u32) { description("End request error."),...
This prevents construction of this variant. Use a hidden public wrapper over `void::Void` for 2 reasons: * Users shouldn't need to specify a `void` dependency in Cargo.toml to use `error-chain`....
So `quick_main` was useful before Rust [1.26](https://blog.rust-lang.org/2018/05/10/Rust-1.26.html#main-can-return-a-result), but now is there a use case for it? Should we deprecate its use in `0.13`?
This commit improves the in-memory size of `Error` from 7 pointers to 1 pointer. Errors are in general relatively rare in applications and having a huge error type ends up...
``` warning: large size difference between variants --> src/main.rs:24:5 | 24 | / error_chain! { 25 | | foreign_links { 26 | | Io(::std::io::Error) #[cfg(unix)]; 27 | | Log(::log::SetLoggerError); ......
From https://public.etherpad-mozilla.org/p/rust-api-guidelines-error-chain and https://internals.rust-lang.org/t/crate-evaluation-for-2017-06-27-error-chain/5362 - [x] [Rename ErrorChainIter to Iter](https://github.com/brson/error-chain/issues/168) - [x] [Implement Debug for ErrorChainIter](https://github.com/brson/error-chain/issues/169) - [ ] [Redesign syntax as a proc macro](https://github.com/brson/error-chain/issues/170) - [ ] [Add example...