-
Notifications
You must be signed in to change notification settings - Fork 15
/
Cargo.toml
86 lines (73 loc) · 2.15 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[package]
name = "graphql-ws-client"
version = "0.11.1"
authors = ["Graeme Coupar <[email protected]>"]
edition = "2021"
resolver = "2"
description = "A graphql over websockets client"
keywords = ["graphql", "client", "api", "websockets", "subscriptions"]
categories = [
"asynchronous",
"network-programming",
"wasm",
"web-programming",
"web-programming::websocket",
]
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.76"
[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"]
tungstenite = ["dep:tungstenite"]
client-cynic = ["cynic"]
client-graphql-client = ["graphql_client"]
ws_stream_wasm = ["dep:ws_stream_wasm", "dep:pharos"]
[dependencies]
async-channel = "2"
futures-lite = "2"
futures-sink = "0.3"
futures-timer = "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.23, <=0.24", optional = true }
graphql_client = { version = "0.14.0", optional = true }
ws_stream_wasm = { version = "0.7", optional = true }
pharos = { version = "0.5.2", optional = true }
[dev-dependencies]
assert_matches = "1.5"
async-graphql = "7.0.1"
async-graphql-axum = "7"
async-tungstenite = { version = "0.28", 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",
"tungstenite",
]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[workspace.lints.rust]
unsafe_code = "forbid"
[workspace.lints.clippy]
cargo = { level = "warn", priority = -1 }
multiple_crate_versions = "allow"
[lints]
workspace = true