#demo #axum

app web-service-files-axum

Web service that displays the program uptime by using Axum, Tokio, Rust. The purpose of this is simple testing of our systems.

2 stable releases

Uses new Rust 2024

1.1.0 Aug 26, 2025
1.0.2 Aug 21, 2025

#735 in HTTP server

Download history 194/week @ 2025-08-20 71/week @ 2025-08-27 37/week @ 2025-09-03 4/week @ 2025-09-10 2/week @ 2025-09-17

188 downloads per month

GPL-2.0 OR GPL-3.0

8MB
154 lines

Contains (DOS exe, 8MB) web-service-files-axum.exe, (Mach-o exe, 2MB) web-service-files-axum

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.

Dependencies

~10–20MB
~261K SLoC