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

CryptoProvider error #8

Open
Dolu89 opened this issue Oct 4, 2024 · 2 comments
Open

CryptoProvider error #8

Dolu89 opened this issue Oct 4, 2024 · 2 comments

Comments

@Dolu89
Copy link

Dolu89 commented Oct 4, 2024

Hey
I'm on macos m1 arch, I don't know if it's related, but I got this error when trying to launch the program

*** CONNECTING ***
thread 'main' panicked at /Users/dolu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.23.12/src/crypto/mod.rs:259:14:
no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

I fixed the error by doing this rustls/rustls#1938 (comment)

@mikedilger
Copy link
Owner

woah. Ok I'll look into this later. Glad you found a fix for yourself.

@mikedilger
Copy link
Owner

This is a bit weird since we don't directly depend on rustls. We depend on other crates which themselves depend on rustls. We shouldn't have to do this, and if it has to be done it should be done by the upstream crates (reqwest, tokio-tungstenite)

seanmonstar/reqwest#2423

This is where tungstenite clobbered the NECESSARY rustls choice between aws-lc-rs and ring by clobbering both features:

snapview/tungstenite-rs@0e25483

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

2 participants