| Crates.io | web-service-count-axum |
| lib.rs | web-service-count-axum |
| version | 1.5.1 |
| created_at | 2025-06-27 03:06:00.757245+00 |
| updated_at | 2025-08-26 17:11:47.045651+00 |
| description | Web service that displays the hit count by using Axum, Tokio, Rust. The purpose of this is simple testing of our systems. |
| homepage | https://github.com/joelparkerhenderson/web-service-count-axum |
| repository | https://github.com/joelparkerhenderson/web-service-count-axum |
| max_upload_size | |
| id | 1728100 |
| size | 13,973,079 |
documentation • source • llms.txt • crate • email
Web service that displays the hit count 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/count
You should see a web page that displays the hit count.
Use your browser to reload the web page.
You should see the hit count increase by one.
Run the service using a command line option for a custom address:
cargo run -- "1.2.3.4:5678"
Run the service using an environment variable for a custom address:
export ADDRESS="1.2.3.4:5678"
cargo run
Based on free open source software Demo Rust Axum.