这是indexloc提供的服务,不要输入任何密码
Skip to content

Switch to rustls to avoid compiling OpenSSL #137

@Angelmmiguel

Description

@Angelmmiguel

Is your feature request related to a problem? Please describe.

Currently, the project relies on OpenSSL to perform https requests to pull the different runtimes. We are using the reqwest crate for it. When compiling the project to Linux with the musl toolchain, we started facing errors due to missing dependencies.

To fix it, we configured the openssl dependency to build the project using the vendored feature. We only applied this to the musl targets:

[target.x86_64-unknown-linux-musl.dependencies]
openssl = { version = "=0.10.48", features = ["vendored"] }
[target.aarch64-unknown-linux-musl.dependencies]
openssl = { version = "=0.10.48", features = ["vendored"] }

We want to avoid compiling this dependency as it causes other issues in the past.

Describe the solution you'd like

The goal is to use the rustls crate. We can configure reqwest to use it via features. However, we cannot do it yet due to an issue with the Windows aarch64 target in the ring dependency. The problem is fix, although the new release is not public yet.

You can track the current status on: briansmith/ring#1551

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions