Skip to content

Commit

Permalink
refactor(shuttle): update to 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robertohuertasm committed Jul 12, 2023
1 parent bef343f commit 80053a5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions api/shuttle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ publish = false
# internal
api-lib = { workspace = true }
# shuttle
shuttle-runtime = "0.20.0"
shuttle-actix-web = "0.20.0"
shuttle-runtime = "0.21.0"
shuttle-actix-web = "0.21.0"
# db
# shuttle-aws-rds = { version = "0.18.0", features = ["postgres"] }
shuttle-shared-db = { version = "0.20.0", features = ["postgres"] }
shuttle-shared-db = { version = "0.21.0", features = ["postgres"] }
sqlx = { workspace = true }
# static files
shuttle-static-folder = "0.20.0"
shuttle-static-folder = "0.21.0"
# actix
actix-web = { workspace = true }
actix-files = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions docs/src/backend/05_working_with_a_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Go to the `Cargo.toml` file in the `api > shuttle` folder and add the following
[dependencies]
...
# database
shuttle-shared-db = { version = "0.20.0", features = ["postgres"] }
shuttle-shared-db = { version = "0.21.0", features = ["postgres"] }
sqlx = { version = "0.6.3", default-features = false, features = [ "runtime-actix-native-tls", "macros", "postgres", "uuid", "chrono", "json" ] }
```

```admonish title="Cargo Dependencies"
If you want to learn more about how to add dependencies to your `Cargo.toml` file, please refer to the [Cargo Docs](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html).
```

We are adding the [shuttle-shared-db](https://docs.rs/shuttle-shared-db/0.20.0/shuttle_shared_db/) dependency to get the database connection injected into our code and the [SQLx](https://github.com/launchbadge/sqlx) dependency to be able to use the database connection.
We are adding the [shuttle-shared-db](https://docs.rs/shuttle-shared-db/0.21.0/shuttle_shared_db/) dependency to get the database connection injected into our code and the [SQLx](https://github.com/launchbadge/sqlx) dependency to be able to use the database connection.

Note that the [SQLx](https://github.com/launchbadge/sqlx) dependency has a lot of features enabled. We will use them later on in the project.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/backend/24_serving_static_files.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Let's add the `shuttle-static-folder` and the [actix-files](https://docs.rs/acti
[dependencies]
# static
actix-files = "0.6.2"
shuttle-static-folder = "0.20.0"
shuttle-static-folder = "0.21.0"
```

## Serving the static files
Expand Down

0 comments on commit 80053a5

Please sign in to comment.