mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
chore(deps): upgrade dependencies
This commit is contained in:
1014
Cargo.lock
generated
1014
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
63
Cargo.toml
63
Cargo.toml
@@ -11,40 +11,67 @@ publish = false
|
||||
debug = true
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.10.2"
|
||||
actix-macros = { path = "actix-macros" }
|
||||
schedule-parser = { path = "schedule-parser", features = ["test-utils"] }
|
||||
bcrypt = "0.17.0"
|
||||
actix-macros = { path = "actix-macros" }
|
||||
|
||||
# serve api
|
||||
actix-web = "4"
|
||||
|
||||
# basic
|
||||
chrono = { version = "0.4.40", features = ["serde"] }
|
||||
derive_more = { version = "2", features = ["full"] }
|
||||
dotenvy = "0.15.7"
|
||||
|
||||
# sql
|
||||
diesel = { version = "2.2.8", features = ["postgres"] }
|
||||
diesel-derive-enum = { git = "https://github.com/Havunen/diesel-derive-enum.git", features = ["postgres"] }
|
||||
dotenvy = "0.15.7"
|
||||
|
||||
# logging
|
||||
env_logger = "0.11.7"
|
||||
|
||||
# TODO: remove support for android app and fcm?
|
||||
firebase-messaging-rs = { git = "https://github.com/i10416/firebase-messaging-rs.git" }
|
||||
|
||||
# async
|
||||
tokio = { version = "1.44.1", features = ["macros", "rt-multi-thread"] }
|
||||
futures-util = "0.3.31"
|
||||
|
||||
# authorization
|
||||
bcrypt = "0.17.0"
|
||||
jsonwebtoken = { version = "9.3.1", features = ["use_pem"] }
|
||||
hex = "0.4.3"
|
||||
mime = "0.3.17"
|
||||
|
||||
# creating users
|
||||
objectid = "0.2.0"
|
||||
|
||||
# schedule downloader
|
||||
reqwest = { version = "0.12.15", features = ["json"] }
|
||||
sentry = "0.38"
|
||||
sentry-actix = "0.38"
|
||||
ua_generator = "0.5"
|
||||
mime = "0.3.17"
|
||||
|
||||
# error handling
|
||||
sentry = "0.39"
|
||||
sentry-actix = "0.39"
|
||||
|
||||
# [de]serializing
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
serde_json = "1.0.140"
|
||||
serde_with = "3.12.0"
|
||||
sha1 = "0.11.0-pre.5"
|
||||
tokio = { version = "1.44.1", features = ["macros", "rt-multi-thread"] }
|
||||
|
||||
sha1 = "0.11.0-rc.0"
|
||||
|
||||
# documentation
|
||||
utoipa = { version = "5", features = ["actix_extras", "chrono"] }
|
||||
utoipa-rapidoc = { version = "6.0.0", features = ["actix-web"] }
|
||||
utoipa-rapidoc = { version = "6", features = ["actix-web"] }
|
||||
utoipa-actix-web = "0.1"
|
||||
uuid = { version = "1.16.0", features = ["v4"] }
|
||||
ed25519-dalek = "2.1.1"
|
||||
hex-literal = "1.0.0"
|
||||
log = "0.4.26"
|
||||
base64 = "0.22.1"
|
||||
percent-encoding = "2.3.1"
|
||||
ua_generator = "0.5.16"
|
||||
|
||||
uuid = { version = "1", features = ["v4"] }
|
||||
hex-literal = "1"
|
||||
log = "0.4"
|
||||
|
||||
# telegram webdata deciding and verify
|
||||
base64 = "0.22"
|
||||
percent-encoding = "2.3"
|
||||
ed25519-dalek = "2"
|
||||
|
||||
[dev-dependencies]
|
||||
actix-test = { path = "actix-test" }
|
||||
|
||||
7
actix-macros/Cargo.lock
generated
7
actix-macros/Cargo.lock
generated
@@ -1,7 +0,0 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "actix-utility-macros"
|
||||
version = "0.1.0"
|
||||
@@ -4,9 +4,9 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
syn = "2.0.100"
|
||||
quote = "1.0.40"
|
||||
proc-macro2 = "1.0.94"
|
||||
syn = "2"
|
||||
quote = "1"
|
||||
proc-macro2 = "1"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
1520
actix-test/Cargo.lock
generated
1520
actix-test/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -4,5 +4,5 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
actix-http = "3.10.0"
|
||||
actix-web = "4.10.2"
|
||||
actix-http = "3"
|
||||
actix-web = "4"
|
||||
@@ -7,10 +7,11 @@ edition = "2024"
|
||||
test-utils = []
|
||||
|
||||
[dependencies]
|
||||
calamine = "0.26"
|
||||
# because original repo is using yanked zip dependency
|
||||
calamine = { git = "https://github.com/prophittcorey/calamine.git", branch = "fix/zip-3.0" }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
derive_more = { version = "2", features = ["full"] }
|
||||
sentry = "0.38"
|
||||
sentry = "0.39"
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
serde_repr = "0.1.20"
|
||||
regex = "1.11.1"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use sha1::Digest;
|
||||
use sha1::digest::OutputSizeUser;
|
||||
use sha1::digest::typenum::Unsigned;
|
||||
use std::hash::Hasher;
|
||||
|
||||
/// Hesher returning hash from the algorithm implementing Digest
|
||||
@@ -12,7 +14,20 @@ where
|
||||
{
|
||||
/// Obtain hash.
|
||||
pub fn finalize(self) -> String {
|
||||
hex::encode(self.digest.finalize().0)
|
||||
static ALPHABET: [char; 16] = [
|
||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
|
||||
];
|
||||
|
||||
let mut hex = String::with_capacity(<D as OutputSizeUser>::OutputSize::USIZE * 2);
|
||||
|
||||
for byte in self.digest.finalize().0.into_iter() {
|
||||
let byte: u8 = byte;
|
||||
|
||||
hex.push(ALPHABET[(byte >> 4) as usize]);
|
||||
hex.push(ALPHABET[(byte & 0xF) as usize]);
|
||||
}
|
||||
|
||||
hex
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user