Skip to content

Commit b63a44e

Browse files
authored
Add futures dependency (#541)
Fixes #534. I am not sure if the best way is to have folks bring their own futures for the derives / macros or to pull it in as a dep explicitly like I have done here. Because people are filing issues, we will do it this way and see what other issues arise.
1 parent 547cf3e commit b63a44e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

juniper_codegen/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ edition = "2018"
1515
proc-macro = true
1616

1717
[features]
18-
async = []
18+
async = ["futures"]
1919

2020
[dependencies]
2121
proc-macro2 = "1.0.1"
2222
syn = { version = "1.0.3", features = ["full", "extra-traits", "parsing"] }
2323
quote = "1.0.2"
2424
proc-macro-error = "0.3.4"
25+
futures = { version = "0.3.1", optional = true }
2526

2627
[dev-dependencies]
2728
juniper = { version = "0.14.2", path = "../juniper", features = ["async"] }
28-
futures = { version = "0.3.1" }
2929

3030
[badges]
3131
travis-ci = { repository = "graphql-rust/juniper" }

0 commit comments

Comments
 (0)