Replace futures-enum
crate with auto_enums
to ged rid of syn
1 (#1240)
This commit is contained in:
parent
a1bc775e00
commit
507a66a3bf
2 changed files with 4 additions and 2 deletions
|
@ -49,13 +49,13 @@ uuid = ["dep:uuid"]
|
|||
[dependencies]
|
||||
anyhow = { version = "1.0.47", optional = true }
|
||||
async-trait = "0.1.39"
|
||||
auto_enums = "0.8"
|
||||
bigdecimal = { version = "0.4", optional = true }
|
||||
bson = { version = "2.4", features = ["chrono-0_4"], optional = true }
|
||||
chrono = { version = "0.4.30", features = ["alloc"], default-features = false, optional = true }
|
||||
chrono-tz = { version = "0.8", default-features = false, optional = true }
|
||||
fnv = "1.0.5"
|
||||
futures = { version = "0.3.22", features = ["alloc"], default-features = false }
|
||||
futures-enum = { version = "0.1.12", default-features = false }
|
||||
graphql-parser = { version = "0.4", optional = true }
|
||||
indexmap = { version = "2.0", features = ["serde"] }
|
||||
juniper_codegen = { version = "0.16.0-dev", path = "../juniper_codegen" }
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
use std::future;
|
||||
|
||||
use auto_enums::enum_derive;
|
||||
|
||||
use crate::{
|
||||
ast::Selection,
|
||||
executor::{ExecutionResult, Executor},
|
||||
|
@ -181,7 +183,7 @@ where
|
|||
{
|
||||
use futures::stream::{FuturesOrdered, StreamExt as _};
|
||||
|
||||
#[derive(futures_enum::Future)]
|
||||
#[enum_derive(Future)]
|
||||
enum AsyncValueFuture<A, B, C, D> {
|
||||
Field(A),
|
||||
FragmentSpread(B),
|
||||
|
|
Loading…
Reference in a new issue