Closed GopherJ closed 4 years ago
Depending on what platform you are on, and if you are cross compiling, you need to make sure openssl is available to you. See https://docs.rs/openssl/0.10.24/openssl/
Alternative, you can remove the need for openssl in your Cargo.toml
elastic = { version = "0.21.0-pre.5", default_features = false, features = ["rustls-tls"] }
hello @jatsrt, thanks for your reply, this problem occurs on 0.20.10
and Ubuntu19.04
, I think it's because the version of OpenSSL on my PC is too new...
It works fine with the latest version of elastic-rs
, but it seems since 0.21.x
, elastic-rs
can only work with elasticsearch@7. It's not compatible with elasticsearch@5 anymore, in our company, we would like to rewrite our elastic
microservice in rust
, but we are using elasticsearch@5.
Is there a solution to use elasticsearch@5 with elastic-rs
, thanks in advance for your help.
@jatsrt Could you help me on this~? I get stuck here for a long time:)
Same issue. Can't build this v0.20 on Arch Linux cuz OpenSSL is too new. Git master builds at the time of this comment though.
We might be able to backport the rusttls-tls
feature, but I think we are a little apprehensive about supporting multiple versions of Elasticsearch...
As a workaround, you might want to do one of the following:
reqwest
dependency to use the rusttls-tls
feature.@GopherJ Does that work for you?
@jatsrt this feature doesn't seem to exist in the version 0.20.10
.
@mwilliammyers I think the workaround is emk/rust-musl-builder
but it'll be good if the version 0.20.10
uses rustls
by default or as feature.
VERSION:
~0.20.0