Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1 KB

README.md

File metadata and controls

39 lines (24 loc) · 1 KB

Rust starter

Deploy on velixir

No tokio, no axum, no crates at all: a TcpListener and a hand-written response. That keeps the release build to seconds rather than minutes, which is the point of a starter.

Deploy it on velixir.

Running it locally

cargo run

Then open http://localhost:8080.

Deploying

velixir deploy

velixir runs the release build on the build node, so a cold compile of a heavy dependency tree never ties up your laptop.

The one rule

Read PORT from the environment and bind 0.0.0.0. velixir injects PORT; a hardcoded or loopback-only listener builds fine and then fails its health check.

Reaching for a framework

This deliberately has no dependencies. When you want routing, add axum and tokio to Cargo.toml as usual: the build node resolves them, and nothing about the deploy changes.

Licence

MIT.