#demo #axum

app web-service-epoch-axum

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

6 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 26, 2025
1.0.0 Jun 26, 2025

#1518 in Testing

Download history

360 downloads per month

GPL-2.0 OR GPL-3.0

7.5MB
167 lines

Contains (DOS exe, 7.5MB) web-service-epoch-axum.exe, (ELF exe/lib, 2MB) web-service-epoch-axum, (Mach-o exe, 2MB) web-service-epoch-axum, (ELF exe/lib, 2MB) web-service-epoch-axum

Web service epoch axum

documentationsourcellms.txtcrateemail

Web service that displays the epoch time 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/epoch

You should see a web page that displays the epoch time in seconds.

Wait a little bit, then use your browser to reload the web page.

You should see the epoch time increase a little bit.

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

~14–19MB
~249K SLoC