elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
705 stars 72 forks source link

crossbeam-channel v0.3.9 fails to compile #20

Closed russcam closed 4 years ago

russcam commented 4 years ago

crossbeam-channel v0.3.9 fails to compile and fails with the following

error[E0432]: unresolved import `crossbeam_utils::atomic`
 --> /home/r/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-channel-0.3.9/src/flavors/tick.rs:8:22
  |
8 | use crossbeam_utils::atomic::AtomicCell;
  |                      ^^^^^^ could not find `atomic` in `crossbeam_utils`

It's related to crossbeam_utils 0.66 being compiled with a nightly feature that got changed. See https://github.com/crossbeam-rs/crossbeam/issues/435 for more details.

To address for now, force crossbeam_utils to use 0.65:

cargo update -p crossbeam-utils --precise 0.6.5