Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhoule committed Jul 4, 2018
1 parent a27b28a commit 6b832ef
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## [0.1.0] - 2018-07-04

This is the initial public release in which the library is considered usable.

### Added

- Support generating a `Variables` struct for a given query and schema through a custom derive, corresponding to the expected variables.
- Support generating a `ResponseData` struct for a given query and schema through a custom derive, corresponding to the shape of the expected response.
- Various utility traits and structs for working with GraphQL query. This notably does not include code to actually perform the network operations. This may be part of future releases.
- Docs and examples
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "graphql_client"
version = "0.0.1"
version = "0.1.0"
authors = ["Tom Houlé <tom@tomhoule.com>"]
description = "Typed GraphQL requests and responses"
repository = "https://github.com/tomhoule/graphql-client"
license = "Apache-2.0 OR MIT"
keywords = ["graphql", "gql", "api", "web", "webassembly", "wasm"]
keywords = ["graphql", "api", "web", "webassembly", "wasm"]
categories = ["network-programming", "web-programming", "wasm"]

[dependencies]
failure = "0.1"
quote = "0.3"
graphql_query_derive = {path = "./graphql_query_derive", version = "0.0.1"}
graphql_query_derive = {path = "./graphql_query_derive", version = "0.1.0"}
graphql-parser = "0.2.0"
serde = "1.0"
serde_derive = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/call_from_js/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lto = "thin"
crate-type = ["cdylib"]

[dependencies]
graphql_client = { path = "../..", version = "0.0.1" }
graphql_client = { path = "../..", version = "0.1.0" }
wasm-bindgen = "0.2.11"
serde = "1.0.67"
serde_derive = "1.0.67"
Expand Down
2 changes: 1 addition & 1 deletion graphql_client_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ path = "src/main.rs"
[dependencies]
failure = "0.1"
reqwest = "0.8"
graphql_client = { version = "0.0.1", path = ".." }
graphql_client = { version = "0.1.0", path = ".." }
structopt = "0.2"
serde = "1.0"
serde_derive = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion graphql_query_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graphql_query_derive"
version = "0.0.1"
version = "0.1.0"
authors = ["Tom Houlé <tom@tomhoule.com>"]
description = "Utility crate for graphql_client"
license = "Apache-2.0 OR MIT"
Expand Down
1 change: 1 addition & 0 deletions graphql_query_derive/src/field_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ impl FieldType {
}
}

/// Return the innermost name - we mostly use this for looking types up in our Schema struct.
pub fn inner_name_string(&self) -> String {
match &self {
FieldType::Named(name) => name.to_string(),
Expand Down

0 comments on commit 6b832ef

Please sign in to comment.