chore: update deps #43

Merged
realaravinth merged 2 commits from chore-update-deps into master 2024-07-11 02:14:36 +05:30
4 changed files with 419 additions and 384 deletions

View file

@ -1,6 +1,6 @@
pipeline:
steps:
backend:
image: rust
image: rust:1.79-bullseye
environment:
- DATABASE_URL=postgres://postgres:password@database:5432/postgres
commands:
@ -20,6 +20,7 @@ pipeline:
image: plugins/docker
when:
event: [push, tag, deployment]
branch: master
settings:
username: realaravinth
password:

782
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -12,9 +12,9 @@ build = "build.rs"
[dependencies]
actix-files = "0.6.2"
actix-multipart = "0.6"
actix-multipart = "0.7"
actix-web = "4"
actix-web-httpauth = "0.8.0"
actix-web-httpauth = "0.8.2"
futures-util = { version = "0.3.17", default-features = false, features = ["std"] }
lazy_static = "1.4.0"
log = "0.4.17"
@ -24,9 +24,9 @@ serde = { version = "1", features=["derive"]}
tokio = { version = "1.32", features = ["fs"]}
uuid = { version = "1", features = ["v4"] }
sqlx = { version = "0.5.13", features = [ "runtime-actix-rustls", "postgres", "time", "offline" ] }
actix-web-codegen-const-routes = { version = "0.1.0", tag = "0.1.0", git = "https://github.com/realaravinth/actix-web-codegen-const-routes" }
actix-web-codegen-const-routes = "0.2.0"
derive_builder = "0.20"
argon2-creds = { branch = "master", git = "https://github.com/realaravinth/argon2-creds"}
argon2-creds = "0.2.3"
config = "0.11"
derive_more = "0.99.17"
url = { version = "2.2.2", features = ["serde"]}
@ -41,4 +41,4 @@ sqlx = { version = "0.5.13", features = [ "runtime-actix-rustls", "postgres", "t
[dev-dependencies]
actix-rt = "2.7.0"
base64 = "0.21.0"
base64 = "0.22.0"

View file

@ -41,16 +41,16 @@ pub mod routes {
Self {
delete_dir: "/api/v1/files/delete",
upload_file: "/api/v1/files/upload",
index: "/api/v1/files/",
index: "/api/v1/files/index",
}
}
}
}
pub fn services(cfg: &mut web::ServiceConfig) {
cfg.service(index);
cfg.service(delete_dir);
cfg.service(upload_file);
cfg.service(index);
}
#[derive(Debug, Eq, PartialEq, Deserialize, Serialize)]
@ -107,7 +107,7 @@ async fn upload_file(
// iterate over multipart stream
while let Some(mut field) = payload.try_next().await? {
// A multipart/form-data stream has to contain `content_disposition`
let content_disposition = field.content_disposition();
let content_disposition = field.content_disposition().unwrap();
let filename = content_disposition.get_filename();