Skip to content

chore: src/hpke.rs is unused - #70

Open
larseggert wants to merge 1 commit into
mainfrom
chore-kill-hpke
Open

chore: src/hpke.rs is unused#70
larseggert wants to merge 1 commit into
mainfrom
chore-kill-hpke

Conversation

@larseggert

Copy link
Copy Markdown
Collaborator

Kill it. Or otherwise, why keep it?

Kill it. Or otherwise, why keep it?
Copilot AI review requested due to automatic review settings June 2, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes the unused src/hpke.rs module from the repository, eliminating dead HPKE wrapper code that is not part of the crate’s module tree.

Changes:

  • Deleted src/hpke.rs (HPKE context/types/helpers and its associated unit tests).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Clean removal of dead code. src/hpke.rs was never declared as a module in lib.rs, so it was never compiled into the crate. The HPKE-related NSS binding types used by ech.rs, ssl.rs, and p11.rs come from the generated FFI bindings in bindings/bindings.toml, not from this file — those remain intact and unaffected.

Notably, the deleted test module itself contained use crate::{hpke::Aead, init} referencing a non-existent Aead type in the hpke module, which would have been a compile error if the module were ever included — further confirming this has been dead code for some time.

@codecov-commenter

codecov-commenter commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.51%. Comparing base (ee26ca5) to head (56555fc).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   70.46%   70.51%   +0.05%     
==========================================
  Files          27       28       +1     
  Lines        3399     3405       +6     
  Branches     3399     3405       +6     
==========================================
+ Hits         2395     2401       +6     
+ Misses        800      799       -1     
- Partials      204      205       +1     
Flag Coverage Δ
freebsd 70.51% <ø> (+0.05%) ⬆️
linux 70.51% <ø> (+0.05%) ⬆️
macos 70.51% <ø> (+0.05%) ⬆️
windows 70.51% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@martinthomson martinthomson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think that the goal was to port the ohttp crate over to this. It seems like we can probably do that at some point and save a lot of effort over there. (The code looks a little like mine, so I think it's approximately right.)

@larseggert

Copy link
Copy Markdown
Collaborator Author

OK. I'd be happier if this code lived in a PR until then (compared to being dead in the repo).

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.

4 participants