web-service-files-axum

Crates.ioweb-service-files-axum
lib.rsweb-service-files-axum
version1.1.0
created_at2025-08-21 18:05:26.546057+00
updated_at2025-08-26 17:30:58.353448+00
descriptionWeb service that displays the program uptime by using Axum, Tokio, Rust. The purpose of this is simple testing of our systems.
homepagehttps://github.com/joelparkerhenderson/web-service-files-axum
repositoryhttps://github.com/joelparkerhenderson/web-service-files-axum
max_upload_size
id1805179
size10,670,700
Joel Parker Henderson (joelparkerhenderson)

documentation

https://github.com/joelparkerhenderson/web-service-files-axum

README

Web service files axum

documentationsourcellms.txtcrateemail

Web service that serves files using Axum, Tokio, Rust.

This is a very simple web service that we use for testing our systems.

Steps

Run the service using the default address 0.0.0.0:8080:

cargo run

You can browse files by name…

Browse https://localhost:8080/index.html

Browse https://localhost:8080/index.txt

Browse https://localhost:8080/index.json

You should see a response that shows the file contents.

Options

Run the service using an environment variable for a custom bind address:

export BIND="1.1.1.1:1111"
cargo run

Run the service using environment variables for a custom host and port:

export HOST="1.1.1.1"
export PORT="1111"
cargo run

References

Based on free open source software Demo Rust Axum.

Commit count: 5

cargo fmt