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

Allow building without the pem crate feature #204

Merged
merged 3 commits into from Dec 19, 2023

Conversation

daxpedda
Copy link
Contributor

Currently trying to build like this:

cargo build -p rcgen --no-default-features --features ring

will fail because it can't find pem::PemError or Error::PemError.

Simply adding a cfg guard on this implementation fixes the issue.

@djc
Copy link
Member

djc commented Dec 19, 2023

Would you mind adding a CI job that tests for this, to help us avoid regressing this again?

.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Thanks, looks great!

Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

Thank you

@cpu
Copy link
Member

cpu commented Dec 19, 2023

Clippy Expected — Waiting for status to be reported

This is from the branch protection rules falling out of sync with the updated matrix-based task name. I think we should merge without waiting for requirements to be met and then fix those rules.

@est31 est31 merged commit 44bb7c7 into rustls:main Dec 19, 2023
20 checks passed
@est31
Copy link
Member

est31 commented Dec 19, 2023

I think this warrants a 0.12.1 bugfix release.

@cpu cpu mentioned this pull request Jan 25, 2024
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

4 participants