Deploy Rust applications with Git.
Push your Cargo project. Leilani builds your code, runs your binaries, and routes HTTPS traffic to your application.
- You provide
- Your Rust source in Git,
Cargo.lock, and aleilani.jsonfile naming the binaries and ports. - Leilani handles
- The Cargo release build, running your binaries, HTTPS routing, and collecting application logs.
Your first deployment
-
Create a workspace
Open the link sent to your email and set a password. Your workspace gives you the Git remote and credentials for deployment.
-
Configure your app
Add
leilani.jsonbesideCargo.toml. This example runs a binary namedapilistening on0.0.0.0:3000.leilani.json · example { "packages": { "api": { "args": [] } }, "http": { "binds": { "{workspace-id}.aloha.leilani.dev": 3000 } } } -
Push to deploy
Commit your source,
Cargo.lock, andleilani.jsononmain. From that Git repository, add your workspace’s remote and push:git remote add leilani \ https://leilani.dev/git/{workspace-id} git push leilani mainLeilani builds the Cargo workspace in release mode and starts the configured binaries. Git shows the build output. Push to
mainagain to deploy changes.
Before you deploy
- Check Linux compatibility
- Builds run on Alpine Linux (musl) with
--locked. Commit an up-to-dateCargo.lockand check your native dependencies. - Application hosting
- Run one or more Rust binaries from your Cargo project. Managed databases are not included.
- A console for the next step
- Inspect application logs and request metrics, or rebuild the current source. The console is designed for desktop use.
- Pricing and resource limits
- Contact us for pricing and resource limits before deploying.
Create your account
Verify your email, set a password, and open your workspace. Nothing is deployed until you push your code.
Start with your email
We’ll send a one-time link. It expires in 5 minutes.
Already have a workspace? The same email link signs you in.