hyperlane-macros 17.0.8

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
use crate::*;

/// Implementation of Parse trait for ContextInput.
///
/// Parses a single identifier from the input stream.
/// The identifier is the source context variable.
impl Parse for ContextInput {
    fn parse(input: ParseStream) -> Result<Self> {
        let source_ctx: Ident = input.parse()?;
        Ok(ContextInput { source_ctx })
    }
}