Skip to content
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

lib: implement std::error::Error for HpkeError #44

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

cpu
Copy link
Contributor

@cpu cpu commented Nov 14, 2023

This branch implements std::error::Error, and std::fmt::Display for HpkeError, matching the approach already used for
hpke_rs_crypto::Error. This makes handling HpkeError as a generic Error easier in downstream crates. Hopefully I haven't overlooked a reason you explicitly chose not to do this initially.

This is helpful for Jetbrains IDE users (e.g. CLion).
This commit implements `std::error::Error`, and `std::fmt::Display` for
`HpkeError`, matching the approach already used for
`hpke_rs_crypto::Error`. This makes handling `HpkeError` as a generic
`Error` easier in downstream crates.
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@franziskuskiefer franziskuskiefer merged commit 5797535 into cryspen:main Nov 15, 2023
12 of 14 checks passed
@cpu cpu deleted the cpu-impl-err-for-hpkeerror branch November 15, 2023 13:11
@cpu
Copy link
Contributor Author

cpu commented Nov 15, 2023

@franziskuskiefer Would you be willing to publish a v0.1.2 release with this change?

(Separate note: I think the repo is missing a tag for the existing v0.1.1 release from June. The last tag is v0.1.0 from Feb)

@franziskuskiefer
Copy link
Member

Yes, I can certainly do that. But I want to bump the tls_codec dependency first, which needs to be released first. This will take a day or two, but then I'm releasing a new version here.

@cpu
Copy link
Contributor Author

cpu commented Nov 16, 2023

Sounds good. Thank you :-)

@franziskuskiefer
Copy link
Member

I released 0.1.2

@cpu
Copy link
Contributor Author

cpu commented Nov 21, 2023

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants