franziskuskiefer / hpke-rs

Pure Rust implementation of HPKE (https://www.rfc-editor.org/rfc/rfc9180.html)
28 stars 14 forks source link

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

Closed cpu closed 7 months ago

cpu commented 7 months ago

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.

cpu commented 7 months ago

@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 commented 7 months ago

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 commented 7 months ago

Sounds good. Thank you :-)

franziskuskiefer commented 7 months ago

I released 0.1.2

cpu commented 7 months ago

Thank you!