Comments (4)
It's documented, but admittedly not in a place where you'd look. https://github.com/Arnavion/derive-error-chain/blame/741135fc0ef00b204e6661eb283ead6e28fc7fb3/CHANGELOG.md#L60
Making error-chain a dependency of this crate will not work. It needs to be a dependency of the crate where the macro is invoked.
from derive-error-chain.
I see...
I think it's a good idea to put it somewhere near the top of the documentation. It's a pretty important, non-trivial detail (and i spent an hour before i figured it out...)
Is it possible/desirable to lose that dependency? or would that both break compatibility with error_chain
and be too much of a hassle?
(of course, the saner alternative is to just document the dependency :P)
from derive-error-chain.
Using error-chain's traits is a deliberate decision. #5
from derive-error-chain.
That makes sense.
(Thanks for the cool package, btw :) )
from derive-error-chain.
Related Issues (20)
- Port error-chain's tests
- Support specifying custom `Error::cause`
- Replace `error_chain!` HOT 6
- Make Sync configurable
- Future alias? HOT 1
- Make Msg optional
- Rename `#[derive(error_chain)]` to `#[derive(ErrorChain)]`
- Don't require `ErrorKind` to be `pub`
- Update pm2, syn, quote for nightly breakages
- Switch to new proc_macro_derive
- Support deriving on structs
- Update for error-chain v0.12.0 HOT 4
- Allow backtrace to be optional
- Update example and tests for #[cfg] on variants
- Use upstream traits - Backtrace, ChainedError, ErrorChainIter, ResultExt, State HOT 18
- Add `const("some string literal")` as a shorthand for `description()` HOT 2
- Add `const("some string literal with {parameters}")` as a shorthand for `display()` HOT 4
- Change display and description to receive all members instead of a tuple of the members
- Documentation updates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from derive-error-chain.