A comprehensive guide to migrating your existing Rust project to Shuttle
Cargo.toml
:
#[shuttle_runtime::main]
.Secrets.toml
file and use #[shuttle_runtime::Secrets]
instead of loading environment variables.#[shuttle_shared_db::Postgres]
instead of manually connecting to a database.Shuttle.toml
file with some file declarations.
Read more in Deployment files.