Deploy a Rust app

Deploy a Rust service from source without building and maintaining the container stages around it. Tokay honors the project's Rust toolchain, compiles the code, carries linked native dependencies into the runtime, and starts the binary behind an HTTPS URL.

Last updated

The repository defines the build

You do not need to reproduce the Rust toolchain and workspace as container stages. After you push the repository, Tokay detects the crate or workspace layout, the rust-toolchain channel, the server entry point, and the environment variables used by the code.

This works for Axum, Actix Web, Rocket, Warp, and other Rust web frameworks.

Native dependencies reach production with the binary

Tokay carries the shared libraries linked by your crates into the runtime, so a successful build does not turn into a missing library failure after deployment. The first build compiles from scratch, while later deploys can reuse unchanged build work.

Each successful version stays in deployment history for rollback.

Other Rust processes run beside the server

A worker or scheduled binary does not need separate process infrastructure. Tokay runs each process as its own Service in the same Project, with access to the same secrets and supported databases.

When the code expects Postgres, MySQL, MongoDB, or Redis, Tokay creates the resource and supplies the connection through the environment variable the program already reads.

Your AI agent can deploy the source directly

A coding agent like Claude Code or Codex can return a verified Rust service without writing builder stage configuration first. Through Tokay's GraphQL API, it can submit the repository, review the detected setup, provide secrets, deploy the Services, and verify the live URL.

Point your agent to app.tokay.io/llms.txt for the deployment protocol.

Tokay has a very generous free tier with no credit card. Get started.

Related guides