diff --git a/migrations/frameworks/actix-web.mdx b/migrations/frameworks/actix-web.mdx index aac06c5..f88d2e4 100644 --- a/migrations/frameworks/actix-web.mdx +++ b/migrations/frameworks/actix-web.mdx @@ -35,23 +35,23 @@ async fn actix_web() -> shuttle_actix_web::ShuttleActixWeb ## How does it work? The Shuttle runtime exposes a trait, `shuttle_runtime::Service`, that services are required to implement before being able to run on Shuttle. -The `shuttle-actix-web` crate exposes an aliased Result type (`shuttle_axum::ShuttleActixWeb`) which simply wraps your router and implements `From` which allows use of `.into()` on your `ServiceConfig`. This integration includes serving the router itself. +The `shuttle-actix-web` crate exposes an aliased Result type (`shuttle_actix_web::ShuttleActixWeb`) which simply wraps your router and implements `From` which allows use of `.into()` on your `ServiceConfig`. This integration includes serving the router itself. Normally one would configure an application with Actix Web using the [App](https://docs.rs/actix-web/latest/actix_web/struct.App.html) struct. However, Shuttle needs to move the users configuration across threads to start the server on our backend, and the App struct is !Send and !Sync. diff --git a/migrations/frameworks/axum.mdx b/migrations/frameworks/axum.mdx index 4fe78b5..101bac4 100644 --- a/migrations/frameworks/axum.mdx +++ b/migrations/frameworks/axum.mdx @@ -35,16 +35,16 @@ async fn main() -> shuttle_axum::ShuttleAxum { ``` ```toml Cargo.toml (before) [dependencies] -axum = 0.7.5 -tokio = 1 +axum = "*" +tokio = "*" ``` ```toml Cargo.toml (after) [dependencies] -axum = 0.7.5 -tokio = 1 +axum = "*" +tokio = "*" -shuttle-runtime = 0.48 -shuttle-axum = 0.48 +shuttle-runtime = "*" +shuttle-axum = "*" ``` diff --git a/migrations/frameworks/rocket.mdx b/migrations/frameworks/rocket.mdx index fba7885..8910eb1 100644 --- a/migrations/frameworks/rocket.mdx +++ b/migrations/frameworks/rocket.mdx @@ -27,16 +27,16 @@ async fn rocket() -> shuttle_rocket::ShuttleRocket { ``` ```toml Cargo.toml (before) [dependencies] -rocket = 0.5 -tokio = 1 +rocket = "*" +tokio = "*" ``` ```toml Cargo.toml (after) [dependencies] -rocket = 0.5 -tokio = 1 +rocket = "*" +tokio = "*" -shuttle-runtime = 0.48 -shuttle-rocket = 0.48 +shuttle-runtime = "*" +shuttle-rocket = "*" ```