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

refactor: Remove the pkcs7 crate from the list of dependencies #164

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

poljar
Copy link
Collaborator

@poljar poljar commented Jul 26, 2024

The pkcs7 crate has been deprecated1, the authors recommend us to switch to the block_padding crate instead.

Incidentally we're already using the block_padding crate for our pkcs7 needs as that one is re-exported by the AES crate. This means that the pkcs7 crate is already an unused dependency and we can just remove it.

This has been confirmed by cargo-udeps2 as well.

This closes: #162.

Footnotes

  1. https://docs.rs/pkcs7/0.4.1/pkcs7/index.html#-deprecated-

  2. https://github.com/est31/cargo-udeps

The pkcs7 crate has been deprecated[1], the authors recommend us to
switch to the block_padding crate instead.

Incidentally we're already using the block_padding crate for our pkcs7
needs as that one is re-exported by the AES crate. This means that the
pkcs7 crate is already an unused dependency and we can just remove it.

This has been confirmed by cargo-udeps[2] as well.

[1]: https://docs.rs/pkcs7/0.4.1/pkcs7/index.html#-deprecated-
[2]: https://github.com/est31/cargo-udeps
@poljar poljar requested a review from dkasak as a code owner July 26, 2024 08:55
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@abe6b62). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #164   +/-   ##
=======================================
  Coverage        ?   90.55%           
=======================================
  Files           ?       34           
  Lines           ?     1905           
  Branches        ?        0           
=======================================
  Hits            ?     1725           
  Misses          ?      180           
  Partials        ?        0           

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

Copy link
Member

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

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

Nice and easy!

@poljar poljar merged commit 4906baf into main Jul 26, 2024
33 checks passed
@poljar poljar deleted the poljar/pkcs7 branch July 26, 2024 12:06
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.

pkcs7 is deprecated - instead use either cms or block_padding::Pkcs7
4 participants