Skip to main content

hyperlane_plugin_static_files/
lib.rs

1//! hyperlane-plugin-static-files
2//!
3//! A static file plugin for the Hyperlane framework, serving the files of a
4//! directory with the content type of the framework.
5
6mod r#const;
7mod r#impl;
8mod r#static;
9mod r#struct;
10
11pub use r#struct::*;
12
13pub(crate) use r#static::*;
14
15use r#const::*;
16
17use std::{
18    path::{Path, PathBuf},
19    sync::OnceLock,
20};
21
22use {
23    hyperlane::{
24        APPLICATION_OCTET_STREAM, CONTENT_TYPE, Context, FileExtension, HttpStatus, Response,
25        ServerHook, Status, Stream, tokio::fs,
26    },
27    lombok_macros::*,
28    static_file_resolver::StaticFileResolver,
29};