Open nstinus opened 12 months ago
I am also facing an issue because of the added dependency on hyper-tls
. I have to cross compile a project to a statically linked binary to be able to run on aarch64-unknown-linux-gnu
, which is currently impossible to do with the dependency on hyper-tls
added in version 0.13.0 of metrics-exporter-prometheus
.
Please switch either to rustls
or provide a way to opt out of HTTPS (which would be my preference since I don't need a secure connection for my use case).
Are there any plans on moving forward with @nstinus' suggestions? On my end, either switching to rustls and removing hyper-tls outright would be acceptable.
I left feedback on their PR, which hasn't (yet?) been incorporated. I don't have the time/need to modularize TLS support, so this is waiting on someone to submit a PR doing so, or an update to the aforementioned PR based on my feedback.
@tobz if you are ok with switching to rustls, I can create a PR for that. Tomorrow (or actually this evening) that is. It's way past my bedtime. ;-)
Tls support was recently added by forcing the usage of openssl via hyper-tls. It means that either this lib is installed or it needs to be compiled. For users unconcerned with tls, we could remove the dependency. Alternatively, rustls provides a pure rust tls implementation.