#local-server #server #cli #file

yanked serve-files

Simplest local files server!

Uses old Rust 2015

1.0.0 Oct 10, 2022

#34 in #local-server

MIT/Apache

7KB
71 lines

Serve Files

Simplest local files server. Serve files in a indicated address. Run as below:

serve localhost:8000 example.html

This program has the following inputs:

serve address file_to_serve [other_files...]

Installation

First, if you don't have rust installed, install it. After installation follow the steps:

You can install it directly using crates.io by running the commands below:

cargo install serve-files

or, install from source code by running:

git clone https://github.com/dreisss/serve-files.git
cd serve-files
cargo install --path .

License

Licensed under either of

at your option.

Licensing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps