Refresh repo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2025-03-31 20:36:33 +02:00
parent 576188da12
commit 8875b24d31
5 changed files with 966 additions and 561 deletions

39
.drone.yml Normal file
View File

@ -0,0 +1,39 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: fetch_dependencies
image: rust
volumes:
- name: rust_registry
path: /usr/local/cargo/registry
commands:
- cargo fetch
- name: code_quality
image: rust
volumes:
- name: rust_registry
path: /usr/local/cargo/registry
depends_on:
- fetch_dependencies
commands:
- rustup component add clippy
- cargo clippy -- -D warnings
- name: test
image: rust
volumes:
- name: rust_registry
path: /usr/local/cargo/registry
depends_on:
- code_quality
commands:
- cargo test
volumes:
- name: rust_registry
temp: {}

1468
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
[package]
name = "heavy_file_server"
version = "0.1.0"
edition = "2021"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@ -12,7 +12,7 @@ actix-web = "4"
actix = "0.13.0"
lazy_static = "1.4.0"
log = "0.4.17"
env_logger = "0.10.0"
env_logger = "0.11.7"
actix-web-httpauth = "0.8.0"
askama = "0.11.1"
tokio = "1.23.0"
askama = "0.13.0"
tokio = "1.23.0"

4
renovate.json Normal file
View File

@ -0,0 +1,4 @@
{
"extends": ["local>renovate/presets"]
}

View File

@ -6,14 +6,14 @@ use std::sync::mpsc;
use std::task::{Context, Poll};
use actix::dev::Stream;
use actix_web::HttpServer;
use actix_web::dev::ServiceRequest;
use actix_web::middleware::Logger;
use actix_web::web::Bytes;
use actix_web::HttpServer;
use actix_web::{web, App, HttpResponse};
use actix_web::{App, HttpResponse, web};
use actix_web_httpauth::extractors;
use actix_web_httpauth::extractors::basic::BasicAuth;
use actix_web_httpauth::extractors::AuthenticationError;
use actix_web_httpauth::extractors::basic::BasicAuth;
use actix_web_httpauth::middleware::HttpAuthentication;
use askama::Template;
use clap::Parser;
@ -60,7 +60,7 @@ fn recurse_scan<B: AsRef<Path>>(dir: B) -> Vec<PathBuf> {
let mut list = vec![];
for file in dir.read_dir().unwrap() {
let file = file.unwrap();
list.append(&mut recurse_scan(&file.path()));
list.append(&mut recurse_scan(file.path()));
}
list