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

[Bug] Cannot use rustls in musl build #2115

Closed
GooGrand opened this issue Feb 25, 2025 · 2 comments
Closed

[Bug] Cannot use rustls in musl build #2115

GooGrand opened this issue Feb 25, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@GooGrand
Copy link

GooGrand commented Feb 25, 2025

Component

meta-crate

What version of Alloy are you on?

alloy v0.9.2

Operating System

Linux

Describe the bug

I am trying to make a build for target x86_64-unknown-linux-musl using alloy 0.9.2 without linking OpenSSL package to it.
As it stated in features, I added reqwest-rustls-tls feature and default-features = false flag.
Even though rustls was enabled, I see hyper-tls package added to reqwest crate in all alloy dependencies.
This dep breaks musl build.
Is there any solution to exclude unnecessary native/jhyper tls with given feature?

@GooGrand GooGrand added the bug Something isn't working label Feb 25, 2025
@DaniPopes
Copy link
Member

DaniPopes commented Feb 25, 2025

can you please update to latest version and post all the alloy crates you're importing? we explicitly ban openssl in foundry and reth so that this doesn't happen, which use alloy extensively.

it might be that you forgot a default-features=false in reqwest or an alloy sub crate

@GooGrand
Copy link
Author

Thank you for the answer, resolved in 0.11.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants