localserver

Crates.iolocalserver
lib.rslocalserver
version0.1.1
sourcesrc
created_at2020-09-22 19:48:39.092583
updated_at2020-12-25 23:48:23.243587
descriptionLocal server serving specified folder
homepagehttps://github.com/arthrp/localserver
repositoryhttps://github.com/arthrp/localserver
max_upload_size
id291823
size72,931
Arthur (arthrp)

documentation

README

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)

Commit count: 21

cargo fmt