hyperlane-plugin-static-files 23.3.1

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
<div align="center">

# hyperlane-plugin-static-files

**Path-Safe Static File Server Plugin**

[![crates.io](https://flat.badgen.net/crates/v/hyperlane-plugin-static-files)](https://crates.io/crates/hyperlane-plugin-static-files)
[![docs.rs](https://img.shields.io/docsrs/hyperlane-plugin-static-files?style=flat-square)](https://docs.rs/hyperlane-plugin-static-files)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../../LICENSE)

[Workspace Overview](../../README.md) · [API Docs](https://docs.rs/hyperlane-plugin-static-files/latest/)

</div>

---

## 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`](../../README.md) 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

```sh
cargo add hyperlane-plugin-static-files
```

## Verification

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

```sh
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

- Update this `README.md` alongside any public API, plugin contract, or module-boundary change.
- Project standards and release workflows live in [`../../.agents/skills/hyperlane/SKILL.md`]../../.agents/skills/hyperlane/SKILL.md.

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.

## Contact

For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).