From 8b4440f7236b0972c1a804eea4c8305b958ad03c Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Mon, 13 Dec 2021 15:43:47 +0100 Subject: setup basic rocket+diesel app --- backend/Cargo.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 backend/Cargo.toml (limited to 'backend/Cargo.toml') diff --git a/backend/Cargo.toml b/backend/Cargo.toml new file mode 100644 index 0000000..42933e5 --- /dev/null +++ b/backend/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "mozaic4-backend" +version = "0.0.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +rocket = "0.4.10" +diesel = { version = "1.4.4", features = ["postgres"] } +dotenv = "0.15.0" + +[dependencies.rocket_contrib] +version = "0.4.10" +default-features = false +features = ["diesel_postgres_pool"] \ No newline at end of file -- cgit v1.2.3 From eabeb7ed7b641dea0b8e71ab33ab97b4ed7a4cda Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Mon, 13 Dec 2021 22:41:20 +0100 Subject: start implementing basic login functionality --- backend/Cargo.toml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'backend/Cargo.toml') diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 42933e5..b44b5ad 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -6,11 +6,18 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -rocket = "0.4.10" -diesel = { version = "1.4.4", features = ["postgres"] } +rocket = { version= "0.5.0-rc.1", features = ["json"] } +diesel = { version = "1.4.4", features = ["postgres", "r2d2"] } dotenv = "0.15.0" +rust-argon2 = "0.8" +rand = "0.8.4" +serde = { version = "1.0", features = ["derive"] } +serde_bytes = "0.11" +chrono = { version = "0.4", features = ["serde"] } +serde_json = "1.0" +base64 = "0.13.0" -[dependencies.rocket_contrib] -version = "0.4.10" -default-features = false + +[dependencies.rocket_sync_db_pools] +version = "0.1.0-rc.1" features = ["diesel_postgres_pool"] \ No newline at end of file -- cgit v1.2.3 From 13cdbc7ff760ae91ee3f62b2a2f62c7559ccaa3c Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 14 Dec 2021 20:23:07 +0100 Subject: test registration & login --- backend/Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend/Cargo.toml') diff --git a/backend/Cargo.toml b/backend/Cargo.toml index b44b5ad..cd70bc0 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -20,4 +20,7 @@ base64 = "0.13.0" [dependencies.rocket_sync_db_pools] version = "0.1.0-rc.1" -features = ["diesel_postgres_pool"] \ No newline at end of file +features = ["diesel_postgres_pool"] + +[dev-dependencies] +parking_lot = "0.11" \ No newline at end of file -- cgit v1.2.3 From 52242b03f1af7f73e73592c2e5ee2bc54813a64d Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 19 Dec 2021 00:16:46 +0100 Subject: simple bot uploads --- backend/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/Cargo.toml') diff --git a/backend/Cargo.toml b/backend/Cargo.toml index cd70bc0..ed64ac3 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" [dependencies] rocket = { version= "0.5.0-rc.1", features = ["json"] } -diesel = { version = "1.4.4", features = ["postgres", "r2d2"] } +diesel = { version = "1.4.4", features = ["postgres", "r2d2", "chrono"] } dotenv = "0.15.0" rust-argon2 = "0.8" rand = "0.8.4" @@ -16,6 +16,7 @@ serde_bytes = "0.11" chrono = { version = "0.4", features = ["serde"] } serde_json = "1.0" base64 = "0.13.0" +zip = "0.5" [dependencies.rocket_sync_db_pools] -- cgit v1.2.3 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