Crates.io | hyperfs |
lib.rs | hyperfs |
version | 3.0.1 |
source | src |
created_at | 2018-09-10 02:12:57.593901 |
updated_at | 2024-03-05 08:20:34.840831 |
description | A simple HTTP server for static files |
homepage | |
repository | https://github.com/tmccombs/hyperfs |
max_upload_size | |
id | 83907 |
size | 22,665 |
A simple HTTP server for static files.
HyperFS is a very simple http server that simply serves the files in the directory
it is run from. It is primarily intended as a development tool similar to using
python -m SimpleHTTPServer
. But it is a single lightweight executable written in rust.
To be honest, part of the motivation was to just so I could try out rust.
To use simple cd into the directory with the files you want to server and run
$ hyperfs >port<
where >port<
is the port you want to listen on. If not supplied it will listen on port
3000.
You can either download the binary from the latest release (currently only 64-bit linux version is available). Or you can build from source using
$ cargo build --release
and the resulting binary will be at 'target/release/hyperfs'.