You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0432]: unresolved import `futures`
--> src/main.rs:3:10
|
3 | #[derive(juniper::GraphQLEnum, Clone, Copy)]
| ^^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `futures`
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
I can work around this by adding futures = "0.3.5" to my Cargo.toml and everything compiles fine. Clearly somewhere a dependency on futures isn't being properly expressed.
- reimplement #[derive(GraphQLUnion)] macro to support:
- both structs and enums
- generics in type definition
- multiple #[graphql] attributes
- external resolver functions
- remove From trait impls generation for enum variants
- reimplement #[graphql_union] macro to support:
- traits
- generics in trait definition
- multiple attributes
- external resolver functions
- GraphQLType implemetation for a raw trait object
- GraphQLTypeAsync implemetation (#549)
- add marker::GraphQLUnion trait
- rewrite "2.5 Unions" section in Book (Juniper user documentation)
- rewrite `codegen` and `codegen_fail` integration tests for GraphQL unions
Additionally:
- re-export `futures` crate in `juniper` for convenient reuse in the generated code without requiring library user to provide `futures` crate by himself (#663)
- use unit type () as default context for EmptyMutation and EmptySubscriptions
- relax Sized trait bound on some GraphQLType and GraphQLTypeAsync definitions, implementations and usages
Describe the bug
I was starting to play with subscriptions, for which I needed to depend on the master branch
My
Cargo.toml
therefore looks something like this:Suppose I then try to compile the following
main.rs
I get
I can work around this by adding
futures = "0.3.5"
to myCargo.toml
and everything compiles fine. Clearly somewhere a dependency onfutures
isn't being properly expressed.c.f. also #534
Additional context
Rust toolchain
nightly-2020-05-07
The text was updated successfully, but these errors were encountered: