willemolding / holochain-rust-todo

Basic example using holochain-rust
31 stars 8 forks source link

Packaging fails because LocalWaker has been removed from futures-core-preview #13

Closed bazmatic closed 5 years ago

bazmatic commented 5 years ago

Running hc package fails after attempting to import LocalWaker from futures-core-preview v0.3.0-alpha.12 which makes sense, since LocalWaker was apparently removed fairly recently: https://github.com/rust-lang-nursery/futures-rs/commit/2d1e371430f3ddfcc27377113fe7e17cb4e7c3e4

Updating crates.io index
Compiling futures-core-preview v0.3.0-alpha.12
Compiling serde_derive v1.0.88
error[E0432]: unresolved import `core::task::LocalWaker`
bazmatic commented 5 years ago

Solved. The problem was that I was I wasn't using the correct pinned version as specified here: https://developer.holochain.org/start.html, under Step 2 - Rust.

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2019-01-24