Skip to content

Conversation

@vishvananda
Copy link
Member

This makes cross-compilation much easier because it doesn't require an openssl build.

@vishvananda vishvananda changed the title Switch to rustls for reqwest Switch to rustls for reqwest for musl target Jan 15, 2025
This makes cross-compilation much easier because it doesn't require an
openssl build.

It should be possible to build for musl using:

    cargo build --target x86_64-unknown-linux-musl --no-default-features
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "rustls-tls"] }

[features]
default = ["reqwest/native-tls", "reqwest/blocking", "reqwest/json"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice. I originally was thinking it would make sense to have a musl feature, but keying it all on the target is great. 👍

@vishvananda vishvananda merged commit 405bcfc into main Jan 16, 2025
8 checks passed
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.

3 participants