Skip to content

Commit 507a66a

Browse files
authored
Replace futures-enum crate with auto_enums to ged rid of syn 1 (#1240)
1 parent a1bc775 commit 507a66a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

juniper/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ uuid = ["dep:uuid"]
4949
[dependencies]
5050
anyhow = { version = "1.0.47", optional = true }
5151
async-trait = "0.1.39"
52+
auto_enums = "0.8"
5253
bigdecimal = { version = "0.4", optional = true }
5354
bson = { version = "2.4", features = ["chrono-0_4"], optional = true }
5455
chrono = { version = "0.4.30", features = ["alloc"], default-features = false, optional = true }
5556
chrono-tz = { version = "0.8", default-features = false, optional = true }
5657
fnv = "1.0.5"
5758
futures = { version = "0.3.22", features = ["alloc"], default-features = false }
58-
futures-enum = { version = "0.1.12", default-features = false }
5959
graphql-parser = { version = "0.4", optional = true }
6060
indexmap = { version = "2.0", features = ["serde"] }
6161
juniper_codegen = { version = "0.16.0-dev", path = "../juniper_codegen" }

juniper/src/types/async_await.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use std::future;
22

3+
use auto_enums::enum_derive;
4+
35
use crate::{
46
ast::Selection,
57
executor::{ExecutionResult, Executor},
@@ -181,7 +183,7 @@ where
181183
{
182184
use futures::stream::{FuturesOrdered, StreamExt as _};
183185

184-
#[derive(futures_enum::Future)]
186+
#[enum_derive(Future)]
185187
enum AsyncValueFuture<A, B, C, D> {
186188
Field(A),
187189
FragmentSpread(B),

0 commit comments

Comments
 (0)