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

feat: allow to create static instances of some objects #348

Conversation

flavio
Copy link
Member

@flavio flavio commented Apr 9, 2024

Allow to create static instances of the cosign::Client, sigstore::trust::ManualTrustRoot.

The ability to create static instances of these objects can simplify the downstream consumers of this library.

The approach taken to create these static instance is the same used by rustls_pki_types::CertificateDer::into_owned

Allow to create `static` instances of the `cosign::Client`,
`sigstore::trust::ManualTrustRoot`.

The ability to create `static` instances of these objects can simplify
the downstream consumers of this library.

The approach taken to create these `static` instance is the same used by
[`rustls_pki_types::CertificateDer::into_owned`](https://docs.rs/rustls-pki-types/1.4.1/rustls_pki_types/struct.CertificateDer.html#method.into_owned)

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
@flavio flavio requested a review from Xynnn007 April 9, 2024 16:59
Copy link
Member

@Xynnn007 Xynnn007 left a comment

Choose a reason for hiding this comment

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

lgtm

@flavio
Copy link
Member Author

flavio commented Apr 12, 2024

Putting on hold, because of #311. This is probably going to be closed

@flavio
Copy link
Member Author

flavio commented May 23, 2024

Closing, this is no longer needed with the latest changes that landed into the main branch

@flavio flavio closed this May 23, 2024
@flavio flavio deleted the allow-to-create-static-copies-of-structs-with-a-lifetime branch May 23, 2024 13:30
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.

None yet

3 participants