juniper/juniper_actix/Cargo.toml
Mihai Dinculescu 8d7ba8295c
Impl subscriptions for juniper_actix (#716)
* Impl subscriptions for juniper_actix

* Add random_human example subscription

* Add actix_subscriptions example to CI

* fixup! Add random_human example subscription

* Migrate actix subscriptions to juniper_graphql_ws

* Simplify error handling

* Change unwrap to expect

* Close connection on server serialization error

Co-authored-by: Christian Legnitto <LegNeato@users.noreply.github.com>
2020-08-09 12:19:34 -10:00

39 lines
1.1 KiB
TOML

[package]
name = "juniper_actix"
version = "0.1.0"
authors = ["Jordao Rosario <jordao.rosario01@gmail.com>"]
description = "Juniper GraphQL integration with Actix"
license = "BSD-2-Clause"
documentation = "https://docs.rs/juniper_actix"
repository = "https://github.com/graphql-rust/juniper"
edition = "2018"
[features]
subscriptions = ["juniper_graphql_ws"]
[dependencies]
actix = "0.9.0"
actix-rt = "1.1.1"
actix-web = { version = "2.0.0", features = ["rustls"] }
actix-web-actors = "2.0.0"
futures = { version = "0.3.5", features = ["compat"] }
tokio = { version = "0.2", features = ["time"] }
serde = { version = "1.0.114", features = ["derive"] }
serde_json = "1.0.57"
anyhow = "1.0"
thiserror = "1.0"
juniper = { version = "0.14.2", path = "../juniper", default-features = false }
juniper_graphql_ws = { path = "../juniper_graphql_ws", optional = true }
[dev-dependencies]
actix-cors = "0.2.0"
actix-identity = "0.2.1"
bytes = "0.5.6"
env_logger = "0.7.1"
log = "0.4.11"
tokio = { version = "0.2", features = ["rt-core", "macros", "blocking"] }
juniper = { version = "0.14.2", path = "../juniper", features = ["expose-test-schema", "serde_json"] }