From 10982fa714660942b35d7aec37276b4263b1154a Mon Sep 17 00:00:00 2001 From: Midas Lambrichts Date: Wed, 29 Jul 2020 20:53:11 +0200 Subject: [PATCH] Small cleanup to satisfy clippy and remove unneeded dependency on future --- examples/web/Cargo.toml | 33 ++++++++++++++++----------------- examples/web/src/lib.rs | 1 - graphql_client/Cargo.toml | 26 +++++++++++++------------- 3 files changed, 29 insertions(+), 31 deletions(-) diff --git a/examples/web/Cargo.toml b/examples/web/Cargo.toml index 150705117..26462efbb 100644 --- a/examples/web/Cargo.toml +++ b/examples/web/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "web" -version = "0.1.0" authors = ["Tom Houlé "] edition = "2018" +name = "web" +version = "0.1.0" # https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-overrides #[profile.release] @@ -12,26 +12,25 @@ edition = "2018" crate-type = ["cdylib", "rlib"] [dependencies] -graphql_client = { path = "../../graphql_client", features = ["web"] } +graphql_client = {path = "../../graphql_client", features = ["web"]} +js-sys = "0.3.44" +lazy_static = "1.4" +serde = {version = "1.0.114", features = ["derive"]} wasm-bindgen = "^0.2" -serde = { version = "1.0.67", features = ["derive"] } -lazy_static = "1.0.1" -js-sys = "0.3.6" -futures = "0.3.5" -wasm-bindgen-futures = "0.4.12" +wasm-bindgen-futures = "0.4.17" [dependencies.web-sys] -version = "0.3.6" features = [ - "console", - "Document", - "Element", - "EventTarget", - "Node", - "HtmlBodyElement", - "HtmlDocument", - "HtmlElement", + "console", + "Document", + "Element", + "EventTarget", + "Node", + "HtmlBodyElement", + "HtmlDocument", + "HtmlElement", ] +version = "0.3.6" # [[example]] # name = "web" diff --git a/examples/web/src/lib.rs b/examples/web/src/lib.rs index a5530a818..cc7168cc8 100644 --- a/examples/web/src/lib.rs +++ b/examples/web/src/lib.rs @@ -1,4 +1,3 @@ -use futures::{Future, FutureExt}; use graphql_client::{web, GraphQLQuery, Response}; use lazy_static::*; use std::{cell::RefCell, sync::Mutex}; diff --git a/graphql_client/Cargo.toml b/graphql_client/Cargo.toml index b3cd5b240..b9cdb5bd9 100644 --- a/graphql_client/Cargo.toml +++ b/graphql_client/Cargo.toml @@ -1,25 +1,25 @@ [package] -name = "graphql_client" -version = "0.9.0" authors = ["Tom Houlé "] -description = "Typed GraphQL requests and responses" -repository = "https://github.com/graphql-rust/graphql-client" -license = "Apache-2.0 OR MIT" -keywords = ["graphql", "api", "web", "webassembly", "wasm"] categories = ["network-programming", "web-programming", "wasm"] +description = "Typed GraphQL requests and responses" edition = "2018" +keywords = ["graphql", "api", "web", "webassembly", "wasm"] +license = "Apache-2.0 OR MIT" +name = "graphql_client" +repository = "https://github.com/graphql-rust/graphql-client" +version = "0.9.0" [dependencies] +anyhow = {version = "1.0", optional = true} doc-comment = "^0.3" -anyhow = { version = "1.0", optional = true } -thiserror = { version = "1.0", optional = true } -graphql_query_derive = { path = "../graphql_query_derive", version = "0.9.0" } +graphql_query_derive = {path = "../graphql_query_derive", version = "0.9.0"} +reqwest = {version = "0.10.7", optional = true} +serde = {version = "^1.0.78", features = ["derive"]} serde_json = "1.0" -serde = { version = "^1.0.78", features = ["derive"] } -reqwest = { version = "0.10.4", optional = true } +thiserror = {version = "1.0", optional = true} -[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -reqwest = "^0.9" +# [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] +# reqwest = "^0.9" [features] web = ["reqwest"]