From 1fb4a5151bd8cfe6de4d8c19e2066a9281a0b61a Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 29 Dec 2021 16:11:27 +0100 Subject: migrate to axum --- backend/Cargo.toml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'backend/Cargo.toml') diff --git a/backend/Cargo.toml b/backend/Cargo.toml index ed64ac3..de98df7 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -6,8 +6,12 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rocket = { version= "0.5.0-rc.1", features = ["json"] } -diesel = { version = "1.4.4", features = ["postgres", "r2d2", "chrono"] } +tokio = { version = "1.15", features = ["full"] } +hyper = "0.14" +axum = { version = "0.4", features = ["json", "headers"] } +diesel = { version = "1.4.4", features = ["postgres", "chrono"] } +bb8 = "0.7" +bb8-diesel = "0.2" dotenv = "0.15.0" rust-argon2 = "0.8" rand = "0.8.4" @@ -18,10 +22,5 @@ serde_json = "1.0" base64 = "0.13.0" zip = "0.5" - -[dependencies.rocket_sync_db_pools] -version = "0.1.0-rc.1" -features = ["diesel_postgres_pool"] - [dev-dependencies] parking_lot = "0.11" \ No newline at end of file -- cgit v1.2.3