Add futures dependency (#541)

Fixes https://github.com/graphql-rust/juniper/issues/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.
This commit is contained in:
Christian Legnitto 2020-02-20 21:53:39 -07:00 committed by GitHub
parent 547cf3e36f
commit b63a44e0f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,17 +15,17 @@ edition = "2018"
proc-macro = true
[features]
async = []
async = ["futures"]
[dependencies]
proc-macro2 = "1.0.1"
syn = { version = "1.0.3", features = ["full", "extra-traits", "parsing"] }
quote = "1.0.2"
proc-macro-error = "0.3.4"
futures = { version = "0.3.1", optional = true }
[dev-dependencies]
juniper = { version = "0.14.2", path = "../juniper", features = ["async"] }
futures = { version = "0.3.1" }
[badges]
travis-ci = { repository = "graphql-rust/juniper" }