Srv Dev Server - Http dev server written in Rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Tim_Paik 2381628fc4
Merge pull request #6 from Tim-Paik/dependabot/cargo/h2-0.3.17
2 months ago
.cargo add update deps 1 year ago
.github/workflows bug fixs 1 year ago
src update deps 7 months ago
templates add readme support 11 months ago
.gitignore 0.1.0-alpha.0 2 years ago
Cargo.lock Bump h2 from 0.3.15 to 0.3.17 2 months ago
Cargo.toml Bump comrak from 0.14.0 to 0.17.0 2 months ago
LICENSE add LICENSE 2 years ago Replace tera with askama, split the code 11 months ago
screenshot.png 1.0.0-rc.4 add readme and 403 connection close bug fix 2 years ago

Srv Dev Server

This is a simple HTTP Server for use in a development environment, inspired by simple-http-server and caddy2, and it is also a practice project for me to learn rust.



Built With


  • Automatic generation of directory listings (default enabled)
  • Relative path/absolute path/support
  • Brotli/Gzip/Deflate streaming compression support (default disabled, disables Content-length and segmented downloads when enabled)
  • Control whether dotfiles are displayed and can be accessed (default disabled)
  • HTTP cache support, 304 support, Last-Modified/ETag support, of course you can also turn off cache
  • Clearly colored organized log
  • Disable access logging or disable all logging support
  • Automatically open default browser (default disabled)
  • Single-Page Application mode (always serve /index.html when the file is not found)
  • Custom listening address (default Custom listening port number (default 8000)
  • HTTP Basic Authentication Support
  • TLS/SSL support, HTTP/2 support
  • One click to enable CORS, custom CORS header support
  • cargo doc support


Pre-compiled Version


yay -S srv-bin
Other Linux

Download the pre-compiled srv-x86_64-unknown-linux-musl.tar.gz on the releases, and copy the srv file in the compressed package to /usr/bin as a ROOT user with 755 permissions.

tar -xzvf srv-v1.0.1-x86_64-unknown-linux-musl.tar.gz
install -Dm0755 -t /usr/bin/ srv
rm srv srv-v1.0.1-x86_64-unknown-linux-musl.tar.gz

for reference only


I'm sorry I don't have the corresponding equipment, but I can only provide srv-x86_64-apple-darwin.tar.gz (Of course, if someone can sponsor me a Mac I would be very grateful)


Download the pre-compiled in the releases, unzip the srv.exe and copy it to your %PATH% (if you dont know what this is, move srv.exe to %SystemRoot%\System32)

Compile and Install

You Need:

  • Rust & Cargo Installation
  • Git Installation
  • Gcc/Msvc Toolchain Installation
git clone
cd srv
cargo build --release

Then you can find the compiled executable file named srv in the target/release/ folder.


Execute srv --help to get all the usage methods

Waiting to be added...


All contributions are welcome and I will reply as soon as I see it :)


This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at