hyperlane-plugin-static-files 23.0.0

A high-performance static file server plugin for the Hyperlane framework with canonicalized path-traversal protection, built-in FileExtension MIME detection, 64-way sharded hot-file cache, precompressed .br/.gz sidecars, ETag/304 conditional validation, RFC 9110 Range 206/416 support, and SPA fallback.
Documentation

hyperlane-plugin-static-files

Path-Safe Static File Server Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Opt-in static asset serving with canonical path-traversal rejection, MIME detection, range/ETag support, and precompressed asset negotiation.

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

  • struct / fn / impl — Canonical directory resolver and StaticFilesHook

Installation

cargo add hyperlane-plugin-static-files

Verification

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

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-static-files --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-static-files --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.