Skip to content

Commit 5ddd29e

Browse files
committed
Package and publish as graphql-client
1 parent ebe527f commit 5ddd29e

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
name = "graphql_client"
33
version = "0.0.1"
44
authors = ["Tom Houlé <[email protected]>"]
5+
description = "A work-in-progress generic graphql client"
6+
repository = "https://github.com/tomhoule/graphql-client"
7+
license = "Apache-2.0 OR MIT"
58

69
[dependencies]
7-
failure = "*"
8-
quote = "*"
9-
graphql_query_derive = {path = "./graphql_query_derive"}
10-
graphql-parser = "*"
10+
failure = "0.1"
11+
quote = "0.3"
12+
graphql_query_derive = {path = "./graphql_query_derive", version = "0.0.1"}
13+
graphql-parser = "0.2.0"
1114
serde = "1.0"
1215
serde_derive = "1.0"
1316

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
NOTE: This is a WIP - I plan to write proper documentation and make a formal release soon.
2+
13
Derive Rust code to safely interact with queries written in the GraphQL query language.
24

35
This library does not provide any networking, caching or other client functionality, it is just meant to make it easy to interact with a GraphQL query and the corresponding response in a strongly typed way. Building a client can be as simple as this:

graphql_client_cli/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
name = "graphql_client_cli"
33
version = "0.1.0"
44
authors = ["Tom Houlé <[email protected]>"]
5+
license = "Apache-2.0 OR MIT"
56

67
[dependencies]
7-
failure = "*"
8-
reqwest = "*"
9-
graphql_client = { path = ".." }
10-
structopt = "*"
8+
failure = "0.1"
9+
reqwest = "0.8"
10+
graphql_client = { version = "0.0.1", path = ".." }
11+
structopt = "0.2"
1112
serde = "1.0"
1213
serde_derive = "1.0"
1314
serde_json = "1.0"

graphql_query_derive/Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
[package]
22
name = "graphql_query_derive"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
authors = ["Tom Houlé <[email protected]>"]
5+
description = "Utility crate for graphql_client"
6+
license = "Apache-2.0 OR MIT"
7+
repository = "https://github.com/tomhoule/graphql-client"
58

69
[lib]
710
proc-macro = true
811

912
[dependencies]
10-
failure = "*"
13+
failure = "0.1"
1114
quote = "^0.6"
12-
syn = "*"
13-
proc-macro2 = { version = "*" }
15+
syn = "0.14"
16+
proc-macro2 = { version = "0.4" }
1417
serde = "1.0"
1518
serde_derive = "1.0"
1619
serde_json = "1.0"
17-
heck = "*"
18-
graphql-parser = "*"
20+
heck = "0.3"
21+
graphql-parser = "0.2"

0 commit comments

Comments
 (0)