Skip to content

Consider eagerly implementing common traits #340

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

Open
12 of 15 tasks
lvkv opened this issue May 14, 2025 · 5 comments
Open
12 of 15 tasks

Consider eagerly implementing common traits #340

lvkv opened this issue May 14, 2025 · 5 comments

Comments

@lvkv
Copy link
Contributor

lvkv commented May 14, 2025

My immediate need/use case is Clone on CertificateSigningRequest. After skimming the codebase, however, I'm getting the impression that there are many more opportunities to implement the common traits outlined in the API guidelines. @est31 also echoed this over at #17 (comment).

Prior related work:

If you're amenable to eagerly implementing these traits, I think it'd be easiest (from a review standpoint) to create a pull request per trait and dedicate each PR to sweeping the codebase and nitpicking the details—similar to #316. I'm open to other approaches too.

@cpu
Copy link
Member

cpu commented May 14, 2025

After skimming the codebase, however, I'm getting the impression that there are many more opportunities to implement the common traits outlined in the API guidelines.

Agreed! I think some of these were harder to take back when some of the params types were holding private data but we're in a better spot now.

I think it'd be easiest (from a review standpoint) to create a pull request per trait and dedicate each PR to sweeping the codebase and nitpicking the details

I'd also be open to one PR with each trait handled per-commit but don't feel strongly.

@djc
Copy link
Member

djc commented May 15, 2025

One trait per commit in a single PR sounds good to me.

@lvkv
Copy link
Contributor Author

lvkv commented May 15, 2025

#341 was pretty seamless, so I'll open one more PR for all the other common traits—one trait per commit.

@djc
Copy link
Member

djc commented May 19, 2025

I think we should stop after the PRs that already exist and wait for someone who has a particular impl they require.

@lvkv
Copy link
Contributor Author

lvkv commented May 19, 2025

I think we should stop after the PRs that already exist

Feel free to manage/close this PR whenever, by the way. There are no further requests on my end after #341 🙂.

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

No branches or pull requests

3 participants