⭐️ If you like Shuttle, give it a star on GitHub!
$ cargo install cargo-shuttle
The only serverless platform that lets you control your infrastructure from Rust code as easily as deriving a trait.
Infrastructure from Rust
Serverless
Databases
Entirely open-source
Self-hosting friendly
Fast deploy times
Take your code to full-featured cloud infrastructure in under a minute. Don't take our word for it, see it for yourself.
Persist with Postgres
Build any web service with a fully managed database using Rocket and sqlx
Url Shortener
A URL shortener that you can use from your terminal - built with shuttle, rocket and postgres/sqlx.
JWT authentication
Guard endpoints using self-issued JWT tokens while keeping public endpoint open
Shuttle is built for Rust.
A simple cargo command packages up your application, ships it to the shuttle build cluster where it's incrementally compiled and automatically served on a unique subdomain.
Shuttle uses simple but powerful annotations to understand your dependencies. Infrastructure dependencies like databases or key-value stores are spun up for you and everything is automatically wired together from the get-go.
It feels a little magical.
1use rocket::{get, routes, Build, Rocket};
2use shuttle_service::Error;
3
4#[get("/hello")]
5fn hello() -> &'static str {
6 "Hello, world!"
7}
8
9#[shuttle_service::main]
10async fn init() -> Result<Rocket<Build>, Error> {
11 Ok(
12 rocket::build()
13 .mount("/", routes![hello])
14 )
15}