Skip to content

der: remove generic <T> from Reader::finish #1833

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

Merged

Conversation

dishmaker
Copy link
Contributor

@dishmaker dishmaker commented May 12, 2025

Depends on:

Before:

./formats$ cargo llvm-lines -p der --all-features | head -n 10
  Lines                Copies              Function name
  -----                ------              -------------
  68510                1007                (TOTAL)
   6422 (9.4%,  9.4%)    29 (2.9%,  2.9%)  der::asn1::any::AnyRef::decode_as
   3334 (4.9%, 14.2%)    33 (3.3%,  6.2%)  <der::reader::slice::SliceReader as der::reader::Reader>::finish
   2310 (3.4%, 17.6%)    10 (1.0%,  7.1%)  der::asn1::integer::value_cmp

After:

./formats$ cargo llvm-lines -p der --all-features | head -n 10
  Lines                Copies             Function name
  -----                ------             -------------
  65769                975                (TOTAL)
   6879 (10.5%, 10.5%)  29 (3.0%,  3.0%)  der::asn1::any::AnyRef::decode_as
   2310 (3.5%, 14.0%)   10 (1.0%,  4.0%)  der::asn1::integer::value_cmp
   1768 (2.7%, 16.7%)    1 (0.1%,  4.1%)  der::tag::_::<impl arbitrary::Arbitrary for der::tag::Tag>::try_size_hint::{{closure}}

@dishmaker dishmaker mentioned this pull request Jun 5, 2025
@tarcieri
Copy link
Member

tarcieri commented Jun 5, 2025

@dishmaker can you get this green? Looks like there are some needed changes

@baloo
Copy link
Member

baloo commented Jun 5, 2025

clippy can be fixed here, but otherwise to fix cms and x509 we'll need to adopt the breaking change in ecdsa first and make a release there, then a release of p256 and others. This is going to be painful :(

(and we'll need to splif off the workspace here again)

What's blocking ecdsa from an rc release?

@tarcieri
Copy link
Member

tarcieri commented Jun 5, 2025

@baloo the latest ecdsa release is v0.17.0-rc.0

@baloo
Copy link
Member

baloo commented Jun 5, 2025

so the plan would be:

@baloo baloo force-pushed the dishmaker/der_reader_finish_no_generic branch from d3b9fac to 00b9e96 Compare June 5, 2025 21:18
@baloo baloo mentioned this pull request Jun 5, 2025
@baloo baloo force-pushed the dishmaker/der_reader_finish_no_generic branch from 00b9e96 to 0543663 Compare June 5, 2025 21:24
@baloo baloo merged commit cd4ade3 into RustCrypto:master Jun 5, 2025
138 checks passed
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.

3 participants