Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

shuttle

> DevOps
Open source

Build & ship backends without writing any infrastructure files.

6.9K stars0 likes0 views
WebsiteGitHub

About

Build & ship backends without writing any infrastructure files.



Fastest Way to Build & Ship Rust Apps

Simple.   Easy.   Joyful.

Report Bug · Request a Feature · Join Our Discord · Follow us on X



Features

  • One-line Resource Provisioning: Get a database or other resource by adding a single line of code to your main file. No config or yaml files required.
  • Rapid Development: It takes 2 minutes from project initialization to a deployed project. It takes seconds to provision a resource, and get it deployed to production.
  • First-class support for popular Rust frameworks: Axum, Actix Web, Rocket, and more
  • Security: Let us worry about the security & permissions while you focus on writing good code.


Quick Start

On Linux and macOS, you can use this install script, which will automatically install the correct target for your OS and distro:

bash
curl -sSfL https://www.shuttle.dev/install | bash

On Windows, you can use this install script to do the same:

powershell
iwr "https://www.shuttle.dev/install-win" | iex

After installing, log in with:

bash
shuttle login

To initialize your project, simply write:

bash
shuttle init --template axum hello-world

And to deploy it, write:

bash
cd hello-world
shuttle deploy

And... that's it!

Service Name:  hello-world
Deployment ID: 3d08ac34-ad63-41c1-836b-99afdc90af9f
Status:        running
Last Updated:  2022-04-01T08:32:34Z
URI:           https://hello-world.shuttleapp.rs

Feel free to build on top of the generated hello-world boilerplate or take a stab at one of our examples.

For the full documentation, visit our docs.

Quick Look

Below is a basic "Hello World" application written in Axum:

rust
use axum::{routing::get, Router};

#[tokio::main]
async fn main() {
    let app = Router::new().route("/", get(hello_world));

    let listener = tokio::net::TcpListener::bind("127.0.0.1:3000")
        .await
        .unwrap();
    println!("listening on {}", listener.local_addr().unwrap());
    axum::serve(listener, app).await.unwrap();
}

async fn hello_world() -> &'static str {
    "Hello, world!"
}

In order to be able to deploy it with a single command, we update the snippet as follows:

rust
use axum::{routing::get, Router};

async fn hello_world() -> &'static str {
    "Hello, world!"
}

#[shuttle_runtime::main]
async fn main() -> shuttle_axum::ShuttleAxum {
    let router = Router::new().route("/", get(hello_world));

    Ok(router.into())
}

Now, with just shuttle deploy, you can see your application live. But let's enhance it further by adding a shared Postgres database:

rust
use axum::{routing::get, Router};

async fn hello_world() -> &'static str {
    "Hello, world!"
}

#[shuttle_runtime::main]
async fn main(
    #[shuttle_shared_db::Postgres] pool: sqlx::PgPool,
) -> shuttle_axum::ShuttleAxum {

    pool.execute(include_str!("../schema.sql"))
        .await
        .expect("failed to run migrations");

    let router = Router::new().route("/", get(hello_world));

    Ok(router.into())
}

Now, if we run shuttle deploy, we'll have an up and running project with a database inside & ready to use.

Repositories

Name Description
shuttle (This repo) All library crates and the Shuttle CLI.
shuttle-examples ‍ Officially maintained examples of projects that can be deployed on Shuttle.
shuttle-docs Documentation hosted on docs.shuttle.dev.
www Our website shuttle.dev, including the blog and more.
deploy-action ⚙ GitHub Action for continuous deployments.
awesome-shuttle An awesome list of Shuttle-hosted projects and resources that users can add to.
shuttlings ⚔️ A collection of Rust code challenges. A great way to get started with using Rust and Shuttle.


Contributing to Shuttle

Contributing to Shuttle is highly encouraged! Even if you are not planning to submit any code, joining our Discord server and providing feedback helps us a lot!

Check out our contributing docs and find the appropriate repo above to contribute to. For development of this repo, check the development docs.

Algora Bounties

To offload work from the engineering team on low-priority issues, we will sometimes add a cash bounty to issues. Sign up to the Algora Console to find open issues with bounties.

Contributors ✨

Thanks goes to these wonderful people:

Made with contrib.rocks.

Issues· 38 open

View all issuesOpen on GitHub
  • #2138

    [Feature]: Can you help with the login

    Updated Apr 23, 2026
  • #2136

    Add self-hosting documentation and along with infra code

    Updated Dec 21, 2025
  • #2133

    Unable to run `shuttle run` due to `thread 'tokio-runtime-worker' panicked at /home/circleci/project/cargo-shuttle/src/provisioner_server.rs:261:18: failed to create exec to check if container is ready`

    S-TriageUpdated Nov 21, 2025
  • #2132

    `shuttle login` fails. Version: 0.57.3.

    S-TriageUpdated Nov 14, 2025
  • #2122

    shuttle_shared_db diesel integration does not enable tls, but it is required

    S-TriageUpdated Nov 6, 2025
  • #1925

    `#[shuttle_runtime::test]` macro for integration tests

    S-InvestigationS-AcceptedUpdated Oct 30, 2025
  • #1602

    [Improvement]: `--quiet` flag for local runs

    Good First IssueContribution WantedS-AcceptedUpdated Sep 1, 2025
  • #2004

    Custom health check and graceful shutdown

    S-InvestigationUpdated Aug 22, 2025
  • #1337

    [Improvement]: Allow other async runtimes than tokio, such as smol

    S-InvestigationUpdated Jun 27, 2025
  • #2055

    Auto update project id in `.shuttle/config.toml` on project creation

    S-AcceptedUpdated Jun 2, 2025

> Tags

Rustbaasdeploymentdevopsframework

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理