Closed duguying closed 1 year ago
use #[tokio::main]
for calling async
function.
How can I use the ES client in a program that I specifically do not want to use Tokio? This library is dragging Tokio in via reqwest
and is messing up the operation of headless_chrome
crate which is "smart" and tries to do async stuff if it senses Tokio around (= dies on context absence like described above).
I just have a program that I want to be 100% linear and synchornous and I have my valid reasons for it -- how can I work with Elastic in that program?
Describe the bug running elasticsearch-rs with block_on failure.
To Reproduce Steps to reproduce the behavior:
source as follow
Cargo.toml
main.rs
running failure
env