arthrp / localserver

Simple server for local usage, serving specified directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

localserver

Crates.io

Simple server to serve specified folder locally

Motivation

Sometimes you just need a simple server that would serve a certain directory. For example, when you're compiling your code to Web Assembly, browser won't let you access those files via file URI scheme (file:\\), you'll need to serve them via http.

Implementation

It leverages the power of warp, so all the complexity is handled there.

Usage

localserver [/path/to/folder] [port] (optional)

About

Simple server for local usage, serving specified directory

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%