| Crates.io | web-service-uptime-axum |
| lib.rs | web-service-uptime-axum |
| version | 1.5.1 |
| created_at | 2025-06-26 19:44:04.001855+00 |
| updated_at | 2025-08-26 17:07:34.732339+00 |
| description | Web service that displays the program uptime by using Axum, Tokio, Rust. The purpose of this is simple testing of our systems. |
| homepage | https://github.com/joelparkerhenderson/web-service-uptime-axum |
| repository | https://github.com/joelparkerhenderson/web-service-uptime-axum |
| max_upload_size | |
| id | 1727711 |
| size | 13,922,179 |
documentation • source • llms.txt • crate • email
Web service that displays the program uptime by using Axum, Tokio, Rust.
This is a very simple web service that we use for testing our systems.
Run the service using the default address 0.0.0.0:8080:
cargo run
Browse https://localhost:8080/uptime
You should see a web page that displays the uptime in seconds.
Wait a little bit, then use your browser to reload the web page.
You should see the uptime increase a little bit.
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
Based on free open source software Demo Rust Axum.