Skip to content

Commit 45b6081

Browse files
authored
Merge pull request #336 from MidasLamb/web/drop-custom-client
Small cleanup to satisfy clippy and remove unneeded dependency on future in example
2 parents 2ebbba9 + 10982fa commit 45b6081

File tree

3 files changed

+29
-31
lines changed

3 files changed

+29
-31
lines changed

examples/web/Cargo.toml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
2-
name = "web"
3-
version = "0.1.0"
42
authors = ["Tom Houlé <tom@tomhoule.com>"]
53
edition = "2018"
4+
name = "web"
5+
version = "0.1.0"
66

77
# https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-overrides
88
#[profile.release]
@@ -12,26 +12,25 @@ edition = "2018"
1212
crate-type = ["cdylib", "rlib"]
1313

1414
[dependencies]
15-
graphql_client = { path = "../../graphql_client", features = ["web"] }
15+
graphql_client = {path = "../../graphql_client", features = ["web"]}
16+
js-sys = "0.3.44"
17+
lazy_static = "1.4"
18+
serde = {version = "1.0.114", features = ["derive"]}
1619
wasm-bindgen = "^0.2"
17-
serde = { version = "1.0.67", features = ["derive"] }
18-
lazy_static = "1.0.1"
19-
js-sys = "0.3.6"
20-
futures = "0.3.5"
21-
wasm-bindgen-futures = "0.4.12"
20+
wasm-bindgen-futures = "0.4.17"
2221

2322
[dependencies.web-sys]
24-
version = "0.3.6"
2523
features = [
26-
"console",
27-
"Document",
28-
"Element",
29-
"EventTarget",
30-
"Node",
31-
"HtmlBodyElement",
32-
"HtmlDocument",
33-
"HtmlElement",
24+
"console",
25+
"Document",
26+
"Element",
27+
"EventTarget",
28+
"Node",
29+
"HtmlBodyElement",
30+
"HtmlDocument",
31+
"HtmlElement",
3432
]
33+
version = "0.3.6"
3534

3635
# [[example]]
3736
# name = "web"

examples/web/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use futures::{Future, FutureExt};
21
use graphql_client::{web, GraphQLQuery, Response};
32
use lazy_static::*;
43
use std::{cell::RefCell, sync::Mutex};

graphql_client/Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
[package]
2-
name = "graphql_client"
3-
version = "0.9.0"
42
authors = ["Tom Houlé <tom@tomhoule.com>"]
5-
description = "Typed GraphQL requests and responses"
6-
repository = "https://github.com/graphql-rust/graphql-client"
7-
license = "Apache-2.0 OR MIT"
8-
keywords = ["graphql", "api", "web", "webassembly", "wasm"]
93
categories = ["network-programming", "web-programming", "wasm"]
4+
description = "Typed GraphQL requests and responses"
105
edition = "2018"
6+
keywords = ["graphql", "api", "web", "webassembly", "wasm"]
7+
license = "Apache-2.0 OR MIT"
8+
name = "graphql_client"
9+
repository = "https://github.com/graphql-rust/graphql-client"
10+
version = "0.9.0"
1111

1212
[dependencies]
13+
anyhow = {version = "1.0", optional = true}
1314
doc-comment = "^0.3"
14-
anyhow = { version = "1.0", optional = true }
15-
thiserror = { version = "1.0", optional = true }
16-
graphql_query_derive = { path = "../graphql_query_derive", version = "0.9.0" }
15+
graphql_query_derive = {path = "../graphql_query_derive", version = "0.9.0"}
16+
reqwest = {version = "0.10.7", optional = true}
17+
serde = {version = "^1.0.78", features = ["derive"]}
1718
serde_json = "1.0"
18-
serde = { version = "^1.0.78", features = ["derive"] }
19-
reqwest = { version = "0.10.4", optional = true }
19+
thiserror = {version = "1.0", optional = true}
2020

21-
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
22-
reqwest = "^0.9"
21+
# [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
22+
# reqwest = "^0.9"
2323

2424
[features]
2525
web = ["reqwest"]

0 commit comments

Comments
 (0)