Replace futures-enum crate with auto_enums to ged rid of syn 1 (#1240)

This commit is contained in:
Audun Halland 2024-01-18 16:34:38 +01:00 committed by GitHub
parent a1bc775e00
commit 507a66a3bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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" }

View file

@ -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),