On 2020-09-14 a revised version of the [GraphQL over WebSocket](https://the-guild.dev/blog/graphql-over-websockets) spec was released as [graphql-ws](https://github.com/enisdenjo/graphql-ws), which differs from the de facto standard implemented by [subscriptions-transport-ws](https://github.com/apollographql/subscriptions-transport-ws). This adds a new `cargo` (non-default) feature, `graphql_ws`, which when enabled utilizes the new protocol spec. Original [subscriptions-transport-ws protocol](https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md) Revised [graphql-ws protocol](https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md)
27 lines
947 B
TOML
27 lines
947 B
TOML
[package]
|
|
name = "async-graphql-warp"
|
|
version = "2.1.4"
|
|
authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
|
|
edition = "2018"
|
|
description = "async-graphql for warp"
|
|
license = "MIT/Apache-2.0"
|
|
documentation = "https://docs.rs/async-graphql-warp/"
|
|
homepage = "https://github.com/async-graphql/async-graphql"
|
|
repository = "https://github.com/async-graphql/async-graphql"
|
|
keywords = ["futures", "async", "graphql"]
|
|
categories = ["network-programming", "asynchronous"]
|
|
|
|
[features]
|
|
# To enable the use of [graphql-ws spec](https://github.com/enisdenjo/graphql-ws)
|
|
graphql_ws = []
|
|
|
|
[dependencies]
|
|
async-graphql = { path = "../..", version = "=2.1.4" }
|
|
|
|
warp = { version = "0.2.5", default-features = false, features = ["websocket"] }
|
|
futures-util = { version = "0.3.6", default-features = false }
|
|
serde_json = "1.0.59"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "0.3.0", default-features = false, features = ["macros", "rt-multi-thread", "time", "stream"] }
|