-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom error types to the Decode and DecodeValue traits. #1055
Conversation
Just to set expectations: it will probably be a few months before we're ready to start making breaking changes again |
That's ok, I'll leave this PR in place until it can be accepted. |
It's possible to make breaking changes now. However, I've opened #1328 which provides a less invasive alternative: it allows That said, I think this approach is still interesting, and closer to e.g. what |
@turbocool3r if you can get this PR green we can consider it over #1328. |
Ok, I'll try to do this by Wednesday |
1ff2bf5
to
5638fc3
Compare
It seems this won't be completely green because there are some dependencies on external crates like There also was an issue with the |
Err, how so? |
Aah, in |
5638fc3
to
58468d3
Compare
It would be nice. I think we need to first get this as it goes to see the complete list of crates that need to be modified. |
Yes, it seems it's only ecdsa, not signature. |
Hey, how about that pull request? I could probably do that myself to save some time. |
Sorry, I've been meaning to get to it and I'd love to land this, but if you'd like to go for it that works too. It's going to be oddly circular so you need to make a PR to https://github.com/rustcrypto/formats which uses a |
Did you mean the https://github.com/RustCrypto/signatures repo? By this branch do you mean my fork or some other branch? |
Err sorry, yes https://github.com/RustCrypto/signatures You'll need to point to your branch on your fork for both this repo when updating signatures and again in a circular manner in your fork of |
58468d3
to
97bf668
Compare
Goes in pair with [this](RustCrypto/formats#1055) PR to `formats`.
97bf668
to
d477874
Compare
Seems all green now, the |
Thanks, will review and try to get this merged ASAP |
Thanks! |
d477874
to
b48d95d
Compare
Goes in pair with [this](RustCrypto/formats#1055) PR to `formats`.
Goes with this `formats` PR: RustCrypto/formats#1055
This signature was missed in RustCrypto#1055
This signature was missed in #1055
Adds support for specifying custom error types for the
Encode
,Decode
,EncodeValue
,DecodeValue
,DerOrd
andValueOrd
traits (see #1053).