aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorNathan Perry <np@npry.dev>2025-12-18 17:54:32 -0500
committerNathan Perry <np@npry.dev>2025-12-18 18:31:03 -0500
commitd9538a82ec54b34aa22ba38ad8edeb163a33869b (patch)
tree3a47b6e7977f445126eefed5eb5c0e92e07dcc7c /Cargo.toml
parent50fa917e7e2faf2afa0d97748ede036bdb7a769a (diff)
db: eliminate diesel_async_migrations
Use normal diesel_migrations instead with diesel_async's `migrations` feature, as diesel_async_migrations hasn't been updated to recent diesel. Requires us to switch to an atomic to manually implement the Once behavior and run it synchronously (internally calls tokio::task::block_in_place). Shouldn't be an issue as it's single-shot.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml8
1 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 9bcee3d..b7ad7dc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,7 +24,7 @@ required-features = ["db"]
[features]
default = ["db", "games", "windows_autostart_postgres"]
-db = ["dep:diesel", "dep:diesel-async", "dep:diesel_async_migrations", "dep:tokio-postgres", "dep:deadpool-postgres"]
+db = ["dep:diesel", "dep:diesel-async", "dep:tokio-postgres", "dep:deadpool-postgres"]
games = []
windows_autostart_postgres = []
@@ -73,9 +73,9 @@ symphonia = { version = "0.5", features = ["all"] } # reminder: needed for songb
poise = "0.6"
-diesel = { version = "2.1", features = ["chrono"], optional = true }
-diesel-async = { version = "0.4", optional = true, features = ["deadpool", "postgres"] }
-diesel_async_migrations = { version = "0.12", optional = true }
+diesel = { version = "2.3", features = ["chrono"], optional = true }
+diesel_migrations = "2.3"
+diesel-async = { version = "0.7", optional = true, features = ["deadpool", "postgres", "migrations"] }
tokio-postgres = { version = "0.7", optional = true, features = ["with-chrono-0_4"] }
deadpool-postgres = { version = "0.14", optional = true }