cargo-lambda reqwest & cargos needing ring · cargo-lambda/cargo-lambda · Discussion #647 · GitHub
Skip to content
Discussion options

You must be logged in to vote

Based on your screenshot, the problem is in compiling OpenSSL, not ring. What happens is that Cargo is trying to use OpenSSL from the system (openssl-sys) package, but that won't work with cross-compiling. One solution is to use vendored OpenSSL by adding the following line to your dependencies:

openssl = { version = "0.10", features = ["vendored"] }

This is essentially the same thing that native-tls-vendored ends up doing, and that's also why it stops working when you remove it. If you want to understand why OpenSSL (or ring) gets included in the dependency tree, you can use cargo tree to inspect it:

cargo tree --target aarch64-unknown-linux-gnu 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DoIevenLift
Comment options

Answer selected by DoIevenLift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants