hyperlane-plugin-rpc 23.3.1

A JSON-RPC 2.0 server plugin for the Hyperlane framework with async method routing, batch dispatch, notification handling, and configurable payload and batch DoS bounds.
Documentation
//! hyperlane-plugin-rpc
//!
//! High-concurrency JSON-RPC 2.0 server plugin for Hyperlane with `XxHash3_64`
//! async method routing, concurrent batch dispatch, extensible interceptors,
//! notification handling, and an opt-in [`ServerHook`].

mod r#const;
mod r#enum;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;
mod r#trait;
mod r#type;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use {r#const::*, r#enum::*, r#struct::*, r#trait::*, r#type::*};

pub(crate) use {
    r#fn::*,
    r#static::*,
    r#type::{PreparedBorrowedCall, PreparedRpcCall, RpcMethodMap},
};

use std::{
    borrow::Cow,
    collections::HashMap,
    error::Error,
    fmt::{self, Display, Formatter},
    future::{Future, poll_fn},
    hash::{BuildHasherDefault, Hasher},
    pin::Pin,
    sync::{Arc, OnceLock},
    task::{self, Poll},
};

use {
    hyperlane::{
        APPLICATION_JSON, CONTENT_TYPE, Context, HttpStatus, OK, Response, ResponseError,
        ServerHook, Status, Stream,
    },
    lombok_macros::*,
    serde::{
        Deserialize, Deserializer, Serialize,
        de::{self, IgnoredAny, MapAccess, SeqAccess, Visitor},
    },
    serde_json::{self, Value, from_slice, from_value, to_writer},
};