diff options
author | 2025-04-08 22:56:40 +0200 | |
---|---|---|
committer | 2025-04-08 22:56:40 +0200 | |
commit | 294d634601bdd71f056101c64e00d7a5a7fc5ae2 (patch) | |
tree | a9b24201cc1ed44d9a470a03a2a9066bc98cb83f /gitolfs3-server/src/handler.rs | |
parent | 4a26f611b697907110459631da4d4a0f049440f9 (diff) | |
download | gitolfs3-294d634601bdd71f056101c64e00d7a5a7fc5ae2.tar.gz gitolfs3-294d634601bdd71f056101c64e00d7a5a7fc5ae2.zip |
Switch to Rust 2024, update dependencies
Diffstat (limited to 'gitolfs3-server/src/handler.rs')
-rw-r--r-- | gitolfs3-server/src/handler.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gitolfs3-server/src/handler.rs b/gitolfs3-server/src/handler.rs index 64d5492..be39721 100644 --- a/gitolfs3-server/src/handler.rs +++ b/gitolfs3-server/src/handler.rs | |||
@@ -2,24 +2,24 @@ use std::{collections::HashMap, sync::Arc}; | |||
2 | 2 | ||
3 | use aws_sdk_s3::{error::SdkError, operation::head_object::HeadObjectOutput}; | 3 | use aws_sdk_s3::{error::SdkError, operation::head_object::HeadObjectOutput}; |
4 | use axum::{ | 4 | use axum::{ |
5 | Json, | ||
5 | extract::{Path, State}, | 6 | extract::{Path, State}, |
6 | http, | 7 | http, |
7 | response::{IntoResponse, Response}, | 8 | response::{IntoResponse, Response}, |
8 | Json, | ||
9 | }; | 9 | }; |
10 | use base64::{prelude::BASE64_STANDARD, Engine}; | 10 | use base64::{Engine, prelude::BASE64_STANDARD}; |
11 | use chrono::Utc; | 11 | use chrono::Utc; |
12 | use gitolfs3_common::{generate_tag, Claims, HexByte, Oid, Operation, SpecificClaims}; | 12 | use gitolfs3_common::{Claims, HexByte, Oid, Operation, SpecificClaims, generate_tag}; |
13 | use serde::{de, Deserialize}; | 13 | use serde::{Deserialize, de}; |
14 | use tokio::sync::Mutex; | 14 | use tokio::sync::Mutex; |
15 | 15 | ||
16 | use crate::{ | 16 | use crate::{ |
17 | api::{ | 17 | api::{ |
18 | is_git_lfs_json_mimetype, make_error_resp, BatchRequest, BatchRequestObject, BatchResponse, | 18 | BatchRequest, BatchRequestObject, BatchResponse, BatchResponseObject, |
19 | BatchResponseObject, BatchResponseObjectAction, BatchResponseObjectActions, GitLfsJson, | 19 | BatchResponseObjectAction, BatchResponseObjectActions, GitLfsJson, HashAlgo, LFS_MIME, |
20 | HashAlgo, RepositoryName, TransferAdapter, LFS_MIME, REPO_NOT_FOUND, | 20 | REPO_NOT_FOUND, RepositoryName, TransferAdapter, is_git_lfs_json_mimetype, make_error_resp, |
21 | }, | 21 | }, |
22 | authz::{authorize_batch, authorize_get, Trusted}, | 22 | authz::{Trusted, authorize_batch, authorize_get}, |
23 | config::AuthorizationConfig, | 23 | config::AuthorizationConfig, |
24 | dlimit::DownloadLimiter, | 24 | dlimit::DownloadLimiter, |
25 | }; | 25 | }; |