gqlrs_rocket/lib.rs
1//! Async-graphql integration with Rocket.
2//!
3//! Note: This integrates with the unreleased version 0.5 of Rocket, and so
4//! breaking changes in both this library and Rocket are to be expected.
5//!
6//! To configure options for sending and receiving multipart requests, add your
7//! instance of `MultipartOptions` to the state managed by Rocket
8//! (`.manage(your_multipart_options)`).
9//!
10//! **[Full Example](<https://github.com/async-graphql/examples/blob/master/rocket/starwars/src/main.rs>)**
11
12#![warn(missing_docs)]
13#![forbid(unsafe_code)]
14#![allow(clippy::blocks_in_conditions)]
15
16// When gqlrs is compiled with `no_send`, the integration crate is empty
17// because web frameworks inherently require Send on futures.
18#[cfg(not(gqlrs_no_send))]
19include!("rocket_impl.rs");