Skip to content

About

A std-only HTTP listener on Rust 1.86. Starter template for velixir.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

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.

About

A std-only HTTP listener on Rust 1.86. Starter template for velixir.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages