mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2025-01-08 18:51:24 +00:00
Update dependencies
This commit is contained in:
parent
885567b4e7
commit
ea60fe7e1d
4 changed files with 514 additions and 512 deletions
1007
Cargo.lock
generated
1007
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -42,7 +42,7 @@ reqwest = { version = "0.11.5", default-features = false, features = [
|
|||
"rustls-tls",
|
||||
"stream",
|
||||
], optional = true }
|
||||
rust-s3 = { version = "0.29.0", default-features = false, features = [
|
||||
rust-s3 = { version = "0.31.0", default-features = false, features = [
|
||||
"fail-on-err",
|
||||
"with-reqwest",
|
||||
], optional = true, git = "https://github.com/asonix/rust-s3", branch = "asonix/generic-client" }
|
||||
|
@ -68,10 +68,10 @@ tracing-subscriber = { version = "0.3.0", features = [
|
|||
"tracing-log",
|
||||
] }
|
||||
url = { version = "2.2", features = ["serde"] }
|
||||
uuid = { version = "0.8.2", features = ["v4", "serde"] }
|
||||
uuid = { version = "1.1.2", features = ["v4", "serde"] }
|
||||
|
||||
[dependencies.tracing-actix-web]
|
||||
version = "0.5.0"
|
||||
version = "0.6.0"
|
||||
default-features = false
|
||||
features = ["emit_event_on_error", "opentelemetry_0_17"]
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ where
|
|||
parse_details(s)
|
||||
}
|
||||
|
||||
pub(crate) async fn details_file(path_str: &str) -> Result<Details, Error> {
|
||||
async fn details_file(path_str: &str) -> Result<Details, Error> {
|
||||
let process = Process::run(
|
||||
"magick",
|
||||
&["identify", "-ping", "-format", "%w %h | %m\n", path_str],
|
||||
|
|
|
@ -2,7 +2,8 @@ use crate::store::Store;
|
|||
use actix_web::web::Bytes;
|
||||
use futures_util::stream::Stream;
|
||||
use s3::{
|
||||
client::Client, command::Command, creds::Credentials, request_trait::Request, Bucket, Region,
|
||||
client::Client, command::Command, creds::Credentials, error::S3Error, request_trait::Request,
|
||||
Bucket, Region,
|
||||
};
|
||||
use std::{
|
||||
pin::Pin,
|
||||
|
@ -31,6 +32,9 @@ pub(crate) enum ObjectError {
|
|||
#[error(transparent)]
|
||||
Utf8(#[from] FromUtf8Error),
|
||||
|
||||
#[error(transparent)]
|
||||
Upstream(#[from] S3Error),
|
||||
|
||||
#[error("Invalid length")]
|
||||
Length,
|
||||
|
||||
|
@ -171,7 +175,7 @@ impl ObjectStore {
|
|||
Ok(ObjectStore {
|
||||
path_gen,
|
||||
settings_tree,
|
||||
bucket: Bucket::new_with_path_style(
|
||||
bucket: Bucket::new(
|
||||
bucket_name,
|
||||
match region {
|
||||
Region::Custom { endpoint, .. } => Region::Custom {
|
||||
|
@ -186,7 +190,8 @@ impl ObjectStore {
|
|||
security_token,
|
||||
session_token,
|
||||
},
|
||||
)?,
|
||||
)?
|
||||
.with_path_style(),
|
||||
client,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue