Skip to content

Commit

Permalink
Replace futures-enum crate with auto_enums to ged rid of syn 1 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
audunhalland authored Jan 18, 2024
1 parent a1bc775 commit 507a66a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion juniper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
4 changes: 3 additions & 1 deletion juniper/src/types/async_await.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use std::future;

use auto_enums::enum_derive;

use crate::{
ast::Selection,
executor::{ExecutionResult, Executor},
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 507a66a

Please sign in to comment.