Skip to content

Commit 52bea6a

Browse files
committed
Document cargo features
1 parent 912ba67 commit 52bea6a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

graphql_client/src/lib.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
//! The top-level documentation resides on the [project README](https://github.com/graphql-rust/graphql-client) at the moment.
1+
//! The top-level documentation resides on the [project
2+
//! README](https://github.com/graphql-rust/graphql-client) at the moment.
23
//!
3-
//! The main interface to this library is the custom derive that generates modules from a GraphQL query and schema. See the docs for the [`GraphQLQuery`] trait for a full example.
4+
//! The main interface to this library is the custom derive that generates
5+
//! modules from a GraphQL query and schema. See the docs for the
6+
//! [`GraphQLQuery`] trait for a full example.
7+
//!
8+
//! ## Cargo features
9+
//!
10+
//! - `graphql_query_derive` (default: on): enables the `#[derive(GraphqlQuery)]` custom derive.
11+
//! - `reqwest` (default: off): exposes the `graphql_client::reqwest::post_graphql()` function.
12+
//! - `reqwest_blocking` (default: off): exposes the blocking version, `graphql_client::reqwest::post_graphql_blocking()`.
413
514
#![deny(missing_docs)]
615
#![warn(rust_2018_idioms)]

0 commit comments

Comments
 (0)