Skip to content

Commit 53121eb

Browse files
committed
Update README and CHANGELOG for 0.10.0
- Remove gitter badge - Removed mention of graphql-client-web - Added mention of the CLI workflow
1 parent b3fd251 commit 53121eb

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## Unreleased
99

10-
- [to be documnented] — A CLI and derive option to specify a module to import
11-
custom scalar from. Thanks @miterst! ([PR](https://github.com/graphql-rust/graphql-client/pull/354))
10+
- The `web` feature is dropped. You can now use a `reqwest::Client` instead of the custom HTTP client.
11+
- Allow specifying externally defined enums (thanks @jakmeier)
12+
- Make the derive feature optional (but enabled by default)
13+
- `--no-ssl` param in CLI (thanks @danielharbor!)
14+
- The shape of some generated response types changed to be flatter and more ergonomic.
15+
- Many dependencies were dropped
16+
— A CLI and derive option to specify a module to import custom scalar from.
17+
Thanks @miterst! ([PR](https://github.com/graphql-rust/graphql-client/pull/354))
1218

1319
## 0.9.0 - 2020-03-13
1420

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![Github actions Status](https://github.com/graphql-rust/graphql-client/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/graphql-rust/graphql-client/actions)
44
[![docs](https://docs.rs/graphql_client/badge.svg)](https://docs.rs/graphql_client/latest/graphql_client/)
55
[![crates.io](https://img.shields.io/crates/v/graphql_client.svg)](https://crates.io/crates/graphql_client)
6-
[![Join the chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/juniper-graphql/graphql-client)
76

87
A typed GraphQL client library for Rust.
98

@@ -19,7 +18,7 @@ A typed GraphQL client library for Rust.
1918
- Supports multiple operations per query document.
2019
- Supports setting GraphQL fields as deprecated and having the Rust compiler check
2120
their use.
22-
- [web client](./graphql_client_web) for boilerplate-free API calls from browsers.
21+
- Optional reqwest-based client for boilerplate-free API calls from browsers.
2322

2423
## Getting started
2524

@@ -84,6 +83,15 @@ A typed GraphQL client library for Rust.
8483

8584
[A complete example using the GitHub GraphQL API is available](https://github.com/graphql-rust/graphql-client/tree/master/examples/github), as well as sample [rustdoc output](https://www.tomhoule.com/docs/example_module/).
8685

86+
## Alternative workflow using the CLI
87+
88+
You can introspect GraphQL APIs and generate module from a command line interface to the library:
89+
90+
```bash
91+
$ cargo install graphql_client_cli
92+
$ graphql-client --help
93+
```
94+
8795
## Deriving specific traits on the response
8896

8997
The generated response types always derive `serde::Deserialize` but you may want to print them (`Debug`), compare them (`PartialEq`) or derive any other trait on it. You can achieve this with the `response_derives` option of the `graphql` attribute. Example:

0 commit comments

Comments
 (0)