Rust (axum) app template — z3k platform
Find a file Use this template
Arthur Zinck c952e27da4
Some checks failed
build-image / build (push) Failing after 2s
ci: preview build on pull requests
2026-07-27 11:51:37 +00:00
.forgejo/workflows ci: preview build on pull requests 2026-07-27 11:51:37 +00:00
src feat: rust template — src/main.rs 2026-07-26 20:32:47 +00:00
.dockerignore feat: rust template — .dockerignore 2026-07-26 20:32:48 +00:00
Cargo.toml feat: rust template — Cargo.toml 2026-07-26 20:32:46 +00:00
Dockerfile feat: platform base images (z3k-images) 2026-07-27 07:13:36 +00:00
README.md feat: rust template — README.md 2026-07-26 20:32:49 +00:00

Rust (axum) service — z3k platform template

A minimal axum HTTP service, wired for the platform:

  • listens on PORT (default 8080), health checks on /health
  • every push to main builds and publishes an image; the platform deploys it automatically
  • env vars come from the console's Configuration tab

Edit src/main.rs, push, and watch your deployment in the console.

Note: the first CI build is slower (cold cargo cache); later builds reuse the dependency layer and are much faster.