hyperlane-plugin-problem-details 23.4.0

An RFC 9457 Problem Details (application/problem+json) error normalizer and builder plugin for the Hyperlane framework with zero-overhead 2xx/3xx fast path and automatic 4xx/5xx error structuring.
Documentation

hyperlane-plugin-problem-details

RFC 9457 (application/problem+json) Error Normalizer & Builder Plugin

Crates.io Version Docs.rs CI Status Rust 2024 License: MIT

Workspace Overview · Plugin Catalog · API Docs


Overview

hyperlane-plugin-problem-details standardizes HTTP error responses as RFC 9457 application/problem+json payloads for hyperlane services (response hook order -62). It is opt-in and transparent (Status::Continue) when unconfigured.

Installation

cargo add hyperlane-plugin-problem-details

Usage

use hyperlane_plugin_problem_details::{ProblemDetailsConfig, ProblemDetailsPlugin};

fn setup_problem_details() {
    ProblemDetailsPlugin::init(ProblemDetailsConfig::default());
}

Verification

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-problem-details --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-problem-details --all-features

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.