hyperlane-macros 20.0.2

A comprehensive collection of procedural macros for building HTTP servers with enhanced functionality. This crate provides attribute macros that simplify HTTP request handling, protocol validation, response management, and request data extraction.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::*;

/// Parses the input for context macro.
///
/// This struct represents the source context identifier and optional type annotation
/// parsed from the macro input. The type annotation is used to determine whether
/// to generate a mutable or immutable reference.
pub(crate) struct ContextInput {
    /// The source context variable identifier.
    pub(crate) source_ctx: Ident,
    /// The optional type annotation (e.g., `: &mut Context` or `: &Context`).
    pub(crate) ty: Option<Type>,
}