Rust Apache-2.0

http-server

Simple and configurable command-line HTTP server

H

http-server-rs

Dernière activité 9 août 2026
http-server-rs/http-server

212

étoiles

22

forks

15

issues ouvertes

clifilehttphttp-serverhttpsproxyrustserver-sidestatic

Ce README est souvent en anglais.

http-server

Simple and configurable command-line HTTP server

Crates.io Documentation Build Clippy Formatter Tests

Development

Note

The source code in main belongs to the code for the version 1.0.0.

Release Build

Build release binaries with:

just release

Optionally you can build for other targets by passing the target triple

just release <target-triple>

For example:

# Install aarch64-unknown-linux-gnu target
rustup target install aarch64-unknown-linux-gnu
# Build for aarch64-unknown-linux-gnu target
just release aarch64-unknown-linux-gnu

Then use the following alias for convenience

alias htps = './target/release/http-server'

Release

In order to create a release you must push a Git tag as follows

git tag -a <version> -m <message>

Example

git tag -a v0.1.0 -m "First release"

Tags must follow semver conventions. Tags must be prefixed with a lowercase v letter.

Then push tags as follows:

git push origin main --follow-tags

Contributing

Every contribution to this project is welcome. Feel free to open a pull request or an issue. Just by using this project you're helping it grow. Thank you!

License

Distributed under the terms of both the MIT license and the Apache License (Version 2.0)

Projets similaires

Simple http server in Rust (Windows/Mac/Linux)

Rustfilehttprust
TTheWaWaR
3,5 k étoiles217

🌟 For when you really just want to serve some files over HTTP right now!

Rustclicommand-linecommand-line-tool
Ssvenstaro
7,9 k étoiles397

A simple, zero-configuration, command-line http server

JavaScriptcommand-linehacktoberfesthosting
Hhttp-party
14,2 k étoiles1,6 k