Skip to main content

hyperlane_plugin_grpc/
lib.rs

1//! hyperlane-plugin-grpc
2//!
3//! High-concurrency gRPC over HTTP/2 framing, bounded compression, canonical
4//! status codes, timeout parsing, `XxHash3_64` service routing, extensible
5//! interceptors, and an opt-in [`ServerHook`] for Hyperlane.
6
7mod r#const;
8mod r#enum;
9mod r#fn;
10mod r#impl;
11mod r#static;
12mod r#struct;
13mod r#trait;
14mod r#type;
15
16#[cfg(test)]
17#[path = "../tests/mod.rs"]
18mod tests;
19
20pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*, r#trait::*, r#type::*};
21
22pub(crate) use r#static::*;
23
24use std::{
25    collections::VecDeque,
26    error::Error,
27    fmt::{self, Display, Formatter},
28    future::Future,
29    pin::Pin,
30    str::FromStr,
31    sync::{Arc, OnceLock},
32    time::Duration,
33};
34
35use {
36    http_compress::Compress,
37    hyperlane::{
38        CONTENT_TYPE, Context, HashMapXxHash3_64, HttpStatus, Request, Response, ResponseError,
39        ServerHook, Status, Stream, hash_map_xx_hash3_64, tokio::time::timeout,
40    },
41    lombok_macros::*,
42};