Rust app

Run Rust services from files or a GitHub repo.

  • app
  • language

Guides: Run your own app, Run a GitHub repo

Run it

briq run rust

Fields

NameTypeOptionsDefault
imagestring—"rust:1-slim"
filesrecord{ "path": "content" | { base64 } }—
checkoutobject{ repo, ref?, path?, token? }—
stepsobject[]——
cmdstring | string[]——
portsnumber[]—[8080]
envrecord{ key: string | { secret, value?, literal?, scope?, hosts?, locations? } }{}
sizeenumnano, small, medium, large"small"
volumeobject{ gb? }—
egressobject{ hosts }—

Outputs

Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.

APP_URL
http://app.<stack>.internal:8080

What it runs

BriqImagePortsSizeVolume
apprust:1-slim8080small—

When to use it

  • You wrote an Axum, Actix or plain std::net service and want it built and running next to its database, without a Dockerfile or a registry.

Tips

  • Code in a repo: pass checkout: { repo: "github.com/owner/app" } instead of files. See Run a GitHub repo.
  • Pass the crate as files: Cargo.toml, Cargo.lock and src/main.rs (relative paths go under /app).
  • It builds a release at each start, then cargo run --release runs it, whatever the binary is called. target/ stays on the briq's disk, so a restart rebuilds in seconds; the first build downloads and compiles every dependency, so expect minutes for a big tree, and pick medium if the compiler runs out of memory.
  • Listen on [::]:$PORT (8080 by default): it takes IPv6 and IPv4.
  • Publish it as you run it with expose: "private" (or "public" for anyone): it returns URL.
  • Step by step: Run your own app, with a database and a URL.

On this page

Free to try

Try briq, on us.

Every new account starts with €10 of credits. No card.

Start building

How can we help?

Message to the briq team