Skip to content

Enable rustls_native_certs::load_native_certs on FreeBSD#105

Merged
djc merged 2 commits intorustls:mainfrom
rami3l:patch-1
Jun 26, 2024
Merged

Enable rustls_native_certs::load_native_certs on FreeBSD#105
djc merged 2 commits intorustls:mainfrom
rami3l:patch-1

Conversation

@rami3l
Copy link
Copy Markdown
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

Comment thread rustls-platform-verifier/src/verification/others.rs Outdated
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
Copy Markdown
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
Copy Markdown
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.

@cpu
Copy link
Copy Markdown
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