forked from obmarg/graphql-ws-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
65 lines (55 loc) · 1.88 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[package]
name = "graphql-ws-client"
version = "0.8.2"
authors = ["Graeme Coupar <[email protected]>"]
edition = "2021"
resolver = "2"
description = "A graphql over websockets client"
keywords = ["graphql", "client", "api", "websockets", "subscriptions"]
license = "Apache-2.0"
autoexamples = false
documentation = "https://docs.rs/graphql-ws-client"
readme = "README.md"
repository = "https://github.com/obmarg/graphql-ws-client"
rust-version = "1.69"
[workspace]
members = ["examples", "examples-wasm"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["logging"]
logging = ["dep:log"]
async-tungstenite = ["tungstenite"]
client-cynic = ["cynic"]
client-graphql-client = ["graphql_client"]
ws_stream_wasm = ["dep:ws_stream_wasm", "pharos", "pin-project-lite"]
[dependencies]
async-trait = "0.1"
futures = "0.3"
log = { version = "0.4", optional = true }
pin-project = "1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
cynic = { version = "3", optional = true }
tungstenite = { version = "0.21", optional = true }
graphql_client = { version = "0.13.0", optional = true }
ws_stream_wasm = { version = "0.7", optional = true }
pin-project-lite = { version = "0.2.7", optional = true }
pharos = { version = "0.5.2", optional = true }
futures-timer = "3.0.3"
[dev-dependencies]
assert_matches = "1.5"
async-graphql = "7.0.1"
async-graphql-axum = "7"
async-tungstenite = { version = "0.25", features = ["tokio-runtime"] }
axum = "0.7"
axum-macros = "0.4"
cynic = { version = "3" }
insta = "1.11"
tokio = { version = "1", features = ["macros"] }
tokio-stream = { version = "0.1", features = ["sync"] }
graphql-ws-client.path = "."
graphql-ws-client.features = ["client-cynic", "client-graphql-client", "async-tungstenite"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]