rust-web-server 17.0.0

rust-web-server (rws) is a static content web-server written in Rust
[Read Me](README.md) > Developer

# Developer Info

Make sure you have [Rust](https://www.rust-lang.org/tools/install) 1.75 or later installed.

```bash
rustup update
```

## Run

```bash
cargo run
```

Starts with HTTP/2 and TLS support compiled in (the default). Without a certificate configured it falls back to plain HTTP/1.1 automatically.

To run with HTTPS and HTTP/2 active, set cert and key first:
```bash
cargo run -- --tls-cert-file=cert.pem --tls-key-file=key.pem
```

To run the lightweight HTTP/1.1-only build:
```bash
cargo run --no-default-features --features http1
```

## Test

```bash
cargo test
```

Run a single test:
```bash
cargo test --package rust-web-server --bin rws client_hint::tests::client_hints_header -- --exact
```

## Build

```bash
cargo build --release
```

HTTP/1.1-only (no TLS, smaller binary):
```bash
cargo build --release --no-default-features --features http1
```

## Release

Open [RELEASE](RELEASE.md) for details.