Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Allow deriving traits on the Error #134

Open
Yamakaky opened this issue Feb 21, 2017 · 8 comments · May be fixed by #163
Open

Allow deriving traits on the Error #134

Yamakaky opened this issue Feb 21, 2017 · 8 comments · May be fixed by #163

Comments

@Yamakaky
Copy link
Contributor

Yamakaky commented Feb 21, 2017

Possible syntax:

error_chain! {
  derive { Eq, PartialEq }
  ...
}

We may have to add a trait which the chained errors would have to implement.

anowell pushed a commit to anowell/algorithmia-rust that referenced this issue Apr 5, 2017
Needing a `Sync` bound, so we're downgrading
  temporarily to get it while keeping an eye on:
  rust-lang-deprecated/error-chain#134
@TedDriggs
Copy link
Contributor

Should this be done as "attrs" or something that would also allow passing attributes for proc macro crates like serde_derive?

@kpcyrd
Copy link

kpcyrd commented Nov 29, 2017

Any news? Ran into this problem while I was trying to use pseudo :)

@ivanovaleksey
Copy link

Hello, are there any updates in this?

@lneicelis
Copy link

Any updates?

@kpcyrd
Copy link

kpcyrd commented Oct 30, 2020

I've switched to failure in the meantime, and then switched to anyhow after that, I'm not sure if people still work on error-chain

@Yamakaky
Copy link
Contributor Author

Yamakaky commented Oct 30, 2020

no, anyhow + thiserror is better so I don't think there is more work on error-chain.

@AndyGauge
Copy link
Contributor

error-chain does not have new features developed, but there is an effort to keep it working as breaking changes are introduced from rust-lang. Probably better to find a different library (if you even need one) for new projects.

@lneicelis
Copy link

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants