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

Enable rustls_native_certs::load_native_certs on FreeBSD #105

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

rami3l
Copy link
Contributor

@rami3l rami3l commented Jun 26, 2024

Closes #104, as requested in #104 (comment).

Tested in rust-lang/rustup#3912 with positive outcome.

cc @ctz @cpu

cpu and others added 2 commits June 26, 2024 09:43
The `rustls-native-certs` crate doesn't support WASM (there's no native
cert bundle or platform verifier). The existing conditional dependency
import in `Cargo.toml` allowed the `unix` platform family that may
include a wasm target arch target. This commit updates it to exclude
these targets.
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.

LGTM, but since I've pushed commits I won't merge it myself.

Copy link
Member

@ctz ctz left a comment

Choose a reason for hiding this comment

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

The more I think about it I'm not sure the original cfg expression made sense (linux, but not on wasm32 -- eh?) This is better.

@djc djc merged commit 8da52f1 into rustls:main Jun 26, 2024
18 checks passed
@rami3l rami3l deleted the patch-1 branch June 26, 2024 14:02
@cpu
Copy link
Member

cpu commented Jun 26, 2024

Thanks @rami3l !

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.

Possible FreeBSD certificate detection failure
4 participants