hyperlane-macros 23.2.0

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

hyperlane-macros

Hyperlane Route, Hook & Middleware Proc Macros

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Procedural attribute macros (#[route], #[request_middleware], #[response_middleware], #[hyperlane], #[methods], #[send], #[try_send], #[host], #[referer], etc.) eliminating handler boilerplate.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • route / hook / send / filter — Hygiene-safe attribute macros emitting absolute ::hyperlane::* paths

Installation

cargo add hyperlane-macros

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-macros --all-features --all-targets -- -D warnings
cargo test -p hyperlane-macros --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.