cksac / dataloader-rs

Rust implementation of Facebook's DataLoader using async-await.
Apache License 2.0
261 stars 23 forks source link

Could not compile example code #21

Closed AtsukiTak closed 4 years ago

AtsukiTak commented 4 years ago

What I've tried

cargo check --examples

What I get

error[E0433]: failed to resolve: could not find `document_join_macro` in `futures_util`
   --> /Users/takahashiatsuki/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.3.1/src/lib.rs:504:15
    |
504 | futures_util::document_join_macro! {
    |               ^^^^^^^^^^^^^^^^^^^ could not find `document_join_macro` in `futures_util`

error[E0433]: failed to resolve: could not find `document_select_macro` in `futures_util`
   --> /Users/takahashiatsuki/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.3.1/src/lib.rs:528:15
    |
528 | futures_util::document_select_macro! {
    |               ^^^^^^^^^^^^^^^^^^^^^ could not find `document_select_macro` in `futures_util`

error: aborting due to 2 previous errors

My workaround

It seems to be relevant to https://github.com/graphql-rust/juniper/issues/659 . So I changed juniper branch from async-await to master, then above error is disappeared but another bunch of compile errors arise. I couldn't solve these errors because I'm not familiar with juniper.

I hope that someone will fix this. Thanks.

cksac commented 4 years ago

fixed by #22