Registry / web-framework / hyper-staticfile

hyper-staticfile

JSON →
library0.10.1rscratesunverified

Static file serving for Hyper 1.0.

# Cargo.toml [dependencies] hyper-staticfile = "0.10.1"
INSTALL
IMPORT
SIG · HYPER-STATICFILE
H
hyper-staticfile
web-frameworkrustv0.10.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Static
use hyper_staticfile::Static;

Creates a static file server for the given directory.

use hyper_staticfile::Static; fn main() { let static_files = Static::new("./public"); println!("Static file server configured"); }
Debug
Known issues
gotchaRequires the `hyper` crate and a runtime (e.g., tokio).
fix
Add `hyper` and `tokio` as dependencies and use an async runtime.
affects: >=0.10.0
Upgrade
Version history
0.10.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources