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?
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.
Most helpful comment
You need to disable the default features also,
default-features = false.