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

This commit is contained in:
2025-03-31 23:52:58 +02:00
parent ae754241ce
commit 39beb75a71
5 changed files with 607 additions and 320 deletions

View File

@ -1,5 +1,5 @@
use actix_web::middleware::Logger;
use actix_web::{web, App, HttpResponse, HttpServer};
use actix_web::{App, HttpResponse, HttpServer, web};
use clap::Parser;
use hidden_server::restricted_port::is_restricted_port;
use log::LevelFilter;
@ -43,7 +43,7 @@ async fn main() -> std::io::Result<()> {
log::info!("Choosing a random port to start...");
let mut rng = rand::thread_rng();
let mut rng = rand::rng();
let mut port: u16;
loop {
@ -67,3 +67,13 @@ async fn main() -> std::io::Result<()> {
.run()
.await
}
#[cfg(test)]
mod test {
use crate::Args;
#[test]
fn verify_cli() {
use clap::CommandFactory;
Args::command().debug_assert()
}
}