Skip to main content

hyperlane_plugin_graphql/
lib.rs

1//! hyperlane-plugin-graphql
2//!
3//! GraphQL over HTTP plugin for Hyperlane with a zero-dependency
4//! recursive-descent GraphQL parser, depth and field-count DoS caps,
5//! `XxHash3_64` query and mutation resolver registries, and `POST`/`GET`
6//! GraphQL-over-HTTP execution.
7
8mod r#const;
9mod r#enum;
10mod r#fn;
11mod r#impl;
12mod r#static;
13mod r#struct;
14mod r#trait;
15
16#[cfg(test)]
17#[path = "../tests/mod.rs"]
18mod tests;
19
20pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*, r#trait::*};
21
22pub(crate) use r#static::*;
23
24use std::{
25    collections::{BTreeMap, VecDeque},
26    str::from_utf8,
27    sync::{Arc, OnceLock},
28};
29
30use {
31    hyperlane::{
32        CONTENT_TYPE, Context, HashMapXxHash3_64, HttpStatus, Method, Request, ResponseError,
33        ServerHook, Status, Stream, hash_map_xx_hash3_64,
34    },
35    lombok_macros::*,
36    serde::{Deserialize, Serialize},
37    serde_json::{Map, Number, Value, from_slice, to_vec},
38};