5 stable releases
Uses new Rust 2024
| 1.5.1 | Aug 26, 2025 |
|---|---|
| 1.4.0 | Jul 21, 2025 |
| 1.3.0 | Jul 21, 2025 |
| 1.1.0 | Jun 27, 2025 |
#2132 in HTTP server
21 downloads per month
7.5MB
165 lines
Contains (DOS exe, 7.5MB) web-service-count-axum.exe, (ELF exe/lib, 2MB) web-service-count-axum, (Mach-o exe, 2MB) web-service-count-axum, (ELF exe/lib, 2MB) web-service-count-axum
Web service count axum
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.
Steps
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.
Options
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
References
Based on free open source software Demo Rust Axum.
Dependencies
~9–20MB
~245K SLoC