19 Commits

Author SHA1 Message Date
b5674622aa Update Rust crate thiserror to 1.0.58
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-03-13 00:04:38 +00:00
3ded39f6fc Update dependency vite to v5.1.6
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-03-12 00:09:38 +00:00
d8695d62b8 Update backend dependencies
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-11 18:25:47 +01:00
33f7d64e7e Merge pull request 'Update Rust crate log to 0.4.21' (#102) from renovate/log-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #102
2024-03-11 17:20:27 +00:00
d3983edf11 Update dependency @mui/icons-material to v5.15.12
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-03-06 00:16:53 +00:00
a84391b583 Update dependency vite to v5.1.5
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-03-05 00:12:02 +00:00
9f83183d2c Update Rust crate redis to 0.24.0 (#45)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [redis](https://github.com/redis-rs/redis-rs) | dependencies | minor | `0.23.3` -> `0.24.0` |

---

### Release Notes

<details>
<summary>redis-rs/redis-rs (redis)</summary>

### [`v0.24.0`](https://github.com/redis-rs/redis-rs/releases/tag/redis-0.24.0): v0.24.0

[Compare Source](https://github.com/redis-rs/redis-rs/compare/redis-0.23.4...redis-0.24.0)

##### 0.24.0 (2023-12-05)

##### Features

-   **Breaking change**: Support Mutual TLS ([#&#8203;858](https://github.com/redis-rs/redis-rs/pull/858) [@&#8203;sp-angel](https://github.com/sp-angel))
-   Implement `FromRedisValue` for `Box<[T]>` and `Arc<[T]>` ([#&#8203;799](https://github.com/redis-rs/redis-rs/pull/799) [@&#8203;JOT85](https://github.com/JOT85))
-   Sync Cluster: support multi-slot operations. ([#&#8203;967](https://github.com/redis-rs/redis-rs/pull/967))
-   Execute multi-node requests using try_request. ([#&#8203;919](https://github.com/redis-rs/redis-rs/pull/919))
-   Sorted set blocking commands ([#&#8203;962](https://github.com/redis-rs/redis-rs/pull/962) [@&#8203;gheorghitamutu](https://github.com/gheorghitamutu))
-   Allow passing routing information to cluster. ([#&#8203;899](https://github.com/redis-rs/redis-rs/pull/899))
-   Add `tcp_nodelay` feature ([#&#8203;941](https://github.com/redis-rs/redis-rs/pull/941) [@&#8203;PureWhiteWu](https://github.com/PureWhiteWu))
-   Add support for multi-shard commands. ([#&#8203;900](https://github.com/redis-rs/redis-rs/pull/900))

##### Changes

-   Order in usage of ClusterParams. ([#&#8203;997](https://github.com/redis-rs/redis-rs/pull/997))
-   **Breaking change**: Fix StreamId::contains_key signature ([#&#8203;783](https://github.com/redis-rs/redis-rs/pull/783) [@&#8203;Ayush1325](https://github.com/Ayush1325))
-   **Breaking change**: Update Command expiration values to be an appropriate type ([#&#8203;589](https://github.com/redis-rs/redis-rs/pull/589) [@&#8203;joshleeb](https://github.com/joshleeb))
-   **Breaking change**: Bump aHash to v0.8.6 ([#&#8203;966](https://github.com/redis-rs/redis-rs/pull/966) [@&#8203;aumetra](https://github.com/aumetra))
-   Fix features for `load_native_certs`. ([#&#8203;996](https://github.com/redis-rs/redis-rs/pull/996))
-   Revert redis-test versioning changes ([#&#8203;993](https://github.com/redis-rs/redis-rs/pull/993))
-   Tests: Add retries to test cluster creation ([#&#8203;994](https://github.com/redis-rs/redis-rs/pull/994))
-   Fix sync cluster behavior with transactions. ([#&#8203;983](https://github.com/redis-rs/redis-rs/pull/983))
-   Sync Pub/Sub - cache received pub/sub messages. ([#&#8203;910](https://github.com/redis-rs/redis-rs/pull/910))
-   Prefer routing to primary in a transaction. ([#&#8203;986](https://github.com/redis-rs/redis-rs/pull/986))
-   Accept iterator at `ClusterClient` initialization ([#&#8203;987](https://github.com/redis-rs/redis-rs/pull/987) [@&#8203;ruanpetterson](https://github.com/ruanpetterson))
-   **Breaking change**: Change timeouts from usize and isize to f64 ([#&#8203;988](https://github.com/redis-rs/redis-rs/pull/988) [@&#8203;eythorhel19](https://github.com/eythorhel19))
-   Update minimal rust version to 1.6.5 ([#&#8203;982](https://github.com/redis-rs/redis-rs/pull/982))
-   Disable JSON module tests for redis 6.2.4. ([#&#8203;980](https://github.com/redis-rs/redis-rs/pull/980))
-   Add connection string examples ([#&#8203;976](https://github.com/redis-rs/redis-rs/pull/976) [@&#8203;NuclearOreo](https://github.com/NuclearOreo))
-   Move response policy into multi-node routing. ([#&#8203;952](https://github.com/redis-rs/redis-rs/pull/952))
-   Added functions that allow tests to check version. ([#&#8203;963](https://github.com/redis-rs/redis-rs/pull/963))
-   Fix XREADGROUP command ordering as per Redis Docs, and compatibility with Upstash Redis ([#&#8203;960](https://github.com/redis-rs/redis-rs/pull/960) [@&#8203;prabhpreet](https://github.com/prabhpreet))
-   Optimize make_pipeline_results by pre-allocate memory ([#&#8203;957](https://github.com/redis-rs/redis-rs/pull/957) [@&#8203;PureWhiteWu](https://github.com/PureWhiteWu))
-   Run module tests sequentially.  ([#&#8203;956](https://github.com/redis-rs/redis-rs/pull/956))
-   Log cluster creation output in tests. ([#&#8203;955](https://github.com/redis-rs/redis-rs/pull/955))
-   CI: Update and use better maintained github actions. ([#&#8203;954](https://github.com/redis-rs/redis-rs/pull/954))
-   Call CLIENT SETINFO on new connections. ([#&#8203;945](https://github.com/redis-rs/redis-rs/pull/945))
-   Deprecate functions that erroneously use `tokio` in their name. ([#&#8203;913](https://github.com/redis-rs/redis-rs/pull/913))
-   CI: Increase timeouts and use newer redis. ([#&#8203;949](https://github.com/redis-rs/redis-rs/pull/949))
-   Remove redis version from redis-test. ([#&#8203;943](https://github.com/redis-rs/redis-rs/pull/943))

### [`v0.23.4`](https://github.com/redis-rs/redis-rs/compare/redis-0.23.3...redis-0.23.4)

[Compare Source](https://github.com/redis-rs/redis-rs/compare/redis-0.23.3...redis-0.23.4)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44OS40IiwidXBkYXRlZEluVmVyIjoiMzcuOTEuNCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->

Reviewed-on: #45
2024-03-04 09:06:19 +00:00
8652007906 Update dependency @fontsource/roboto to v5.0.12
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-03-04 00:11:35 +00:00
29c18807d8 Update Rust crate base64 to 0.22.0
All checks were successful
continuous-integration/drone/push Build is passing
2024-03-03 00:21:16 +00:00
eb00b4e7b8 Update dependency @mui/x-data-grid to v6.19.6
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-03-03 00:12:39 +00:00
f16bee5927 Update Rust crate log to 0.4.21
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-29 00:12:16 +00:00
61082619fe Update Rust crate tempfile to 3.10.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-27 00:12:21 +00:00
79126ebbd7 Update dependency @mui/icons-material to v5.15.11
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-25 00:11:44 +00:00
d87f04b76b Update dependency @mui/x-data-grid to v6.19.5
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-24 00:18:24 +00:00
da476ea4d7 Update Rust crate image to 0.24.9
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-24 00:12:14 +00:00
0266c0c8b3 Update dependency vite to v5.1.4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-22 00:11:53 +00:00
5863c346d0 Update dependency vite to v5.1.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-17 00:12:29 +00:00
b0087f2dfb Update dependency vite to v5.1.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-15 00:11:50 +00:00
97340b4ae8 Update dependency @mui/icons-material to v5.15.10
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2024-02-13 00:12:14 +00:00
5 changed files with 930 additions and 387 deletions

View File

@@ -1064,10 +1064,9 @@
"license": "MIT"
},
"node_modules/@fontsource/roboto": {
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-5.0.8.tgz",
"integrity": "sha512-XxPltXs5R31D6UZeLIV1td3wTXU3jzd3f2DLsXI8tytMGBkIsGcc9sIyiupRtA8y73HAhuSCeweOoBqf6DbWCA==",
"license": "Apache-2.0"
"version": "5.0.12",
"resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-5.0.12.tgz",
"integrity": "sha512-x0o17jvgoSSbS9OZnUX2+xJmVRvVCfeaYJjkS7w62iN7CuJWtMf5vJj8LqgC7ibqIkitOHVW+XssRjgrcHn62g=="
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.3",
@@ -1187,9 +1186,9 @@
}
},
"node_modules/@mui/icons-material": {
"version": "5.15.9",
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.9.tgz",
"integrity": "sha512-6tLQoM6RylQuDnHR6qQay0G0pJgKmrhn5MIm0IfrwtmSO8eV5iUFR+nNUTXsWa24gt7ZbIKnJ962UlYaeXa4bg==",
"version": "5.15.12",
"resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.15.12.tgz",
"integrity": "sha512-3BXiDlOd3AexZoEXa/VqpIpVIvosCzjLHsdMWzKMXbZdnBiJjmb9ECdqfjn5SpTClO49qvkKLhkTqdBH3fSFGw==",
"dependencies": {
"@babel/runtime": "^7.23.9"
},
@@ -1464,9 +1463,9 @@
}
},
"node_modules/@mui/x-data-grid": {
"version": "6.19.4",
"resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-6.19.4.tgz",
"integrity": "sha512-qXBe2mSetdsl3ZPqB/1LpKNkEiaYUiFXIaMHTIjuzLyusXgt+w7UsHYO7R+aJYUU7c3FeHla0R1nwRMY3kZ5ng==",
"version": "6.19.6",
"resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-6.19.6.tgz",
"integrity": "sha512-jpZkX1Gnlo87gKcD10mKMY8YoAzUD8Cv3/IvedH3FINDKO3hnraMeOciKDeUk0tYSj8RUDB02kpTHCM8ojLVBA==",
"dependencies": {
"@babel/runtime": "^7.23.2",
"@mui/utils": "^5.14.16",
@@ -4308,9 +4307,9 @@
}
},
"node_modules/vite": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.1.tgz",
"integrity": "sha512-wclpAgY3F1tR7t9LL5CcHC41YPkQIpKUGeIuT8MdNwNZr6OqOTLs7JX5vIHAtzqLWXts0T+GDrh9pN2arneKqg==",
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.6.tgz",
"integrity": "sha512-yYIAZs9nVfRJ/AiOLCA91zzhjsHUgMjB+EigzFb6W2XTLO8JixBCKCjvhKZaye+NKYHCrkv3Oh50dH9EdLU2RA==",
"dependencies": {
"esbuild": "^0.19.3",
"postcss": "^8.4.35",

1254
geneit_backend/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,34 +6,34 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
log = "0.4.20"
env_logger = "0.10.1"
clap = { version = "4.4.12", features = ["derive", "env"] }
log = "0.4.21"
env_logger = "0.11.3"
clap = { version = "4.5.2", features = ["derive", "env"] }
lazy_static = "1.4.0"
anyhow = "1.0.75"
anyhow = "1.0.80"
actix-web = "4.5.1"
actix-cors = "0.7.0"
actix-multipart = "0.6.1"
actix-remote-ip = "0.1.0"
futures-util = "0.3.29"
futures-util = "0.3.30"
diesel = { version = "2.1.4", features = ["postgres"] }
serde = { version = "1.0.194", features = ["derive"] }
serde_json = "1.0.110"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
mailchecker = "6.0.1"
redis = "0.23.3"
lettre = "0.11.2"
redis = "0.25.0"
lettre = "0.11.4"
rand = "0.8.5"
bcrypt = "0.15.0"
light-openid = "1.0.1"
thiserror = "1.0.57"
serde_with = "3.4.0"
rust_iso3166 = "0.1.11"
thiserror = "1.0.58"
serde_with = "3.6.1"
rust_iso3166 = "0.1.12"
rust-s3 = "0.33.0"
sha2 = "0.10.8"
image = "0.24.8"
uuid = { version = "1.6.1", features = ["v4"] }
image = "0.25.0"
uuid = { version = "1.7.0", features = ["v4"] }
httpdate = "1.0.3"
zip = "0.6.6"
mime_guess = "2.0.4"
tempfile = "3.10.0"
base64 = "0.21.7"
tempfile = "3.10.1"
base64 = "0.22.0"

View File

@@ -45,7 +45,7 @@ where
{
let value_str = serde_json::to_string(value)?;
execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs() as usize)?))?;
execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs())?))?;
Ok(())
}

View File

@@ -7,7 +7,7 @@ use crate::utils::time_utils::time;
use actix_multipart::form::tempfile::TempFile;
use diesel::prelude::*;
use image::imageops::FilterType;
use image::ImageOutputFormat;
use image::ImageFormat;
use mime_guess::Mime;
use std::fs::File;
use std::io::{Cursor, Read, Seek, Write};
@@ -80,7 +80,7 @@ pub async fn finalize_upload(mut file: UploadedFile) -> anyhow::Result<Photo> {
);
let mut thumb_cursor = Cursor::new(vec![]);
thumbnail_image.write_to(&mut thumb_cursor, ImageOutputFormat::Png)?;
thumbnail_image.write_to(&mut thumb_cursor, ImageFormat::Png)?;
let thumb_img = thumb_cursor.into_inner();
let photo = NewPhoto {