Skip to main content

gqlrs_axum/
lib.rs

1//! Async-graphql integration with Axum
2#![forbid(unsafe_code)]
3#![allow(clippy::uninlined_format_args)]
4#![warn(missing_docs)]
5
6#[cfg(not(gqlrs_no_send))]
7mod extract;
8#[cfg(not(gqlrs_no_send))]
9mod query;
10#[cfg(not(gqlrs_no_send))]
11mod response;
12#[cfg(not(any(gqlrs_no_send, target_arch = "wasm32")))]
13mod subscription;
14
15#[cfg(not(gqlrs_no_send))]
16pub use extract::{GraphQLBatchRequest, GraphQLRequest, rejection};
17#[cfg(not(gqlrs_no_send))]
18pub use query::GraphQL;
19#[cfg(not(gqlrs_no_send))]
20pub use response::GraphQLResponse;
21#[cfg(not(any(gqlrs_no_send, target_arch = "wasm32")))]
22pub use subscription::{GraphQLProtocol, GraphQLSubscription, GraphQLWebSocket};