Reqwest: Reqwest without openssl

Created on 16 Apr 2019  路  3Comments  路  Source: seanmonstar/reqwest

I am trying to disable openssl and use rustls but it doesn't seem to want to compile with rustls only. I would like to try and avoid any openssl compile scripts running as I am doing a cross compile with musl.

Here is the error:

error: failed to run custom build command for openssl-sys v0.9.43

[dependencies]
reqwest = { version = "0.9.15", features=["rustls-tls"] }

Any ideas how I stop using openssl and only compile with rustls?

Most helpful comment

You need to disable the default features also, default-features = false.

All 3 comments

You need to disable the default features also, default-features = false.

I was looking all over for this and was resorting to using rust-musl-builder since I couldn't figure it out.

@seanmonstar Is there a reason to keep openssl even when the rustls-tls feature is enabled?

@andrewbanchich It's just the way cargo features work, they are additive. So I can't make it automatically disable one if another is enabled.

Was this page helpful?
0 / 5 - 0 ratings