Compare commits

...

5 Commits

Author SHA1 Message Date
2f46769c87 Update Rust crate log to 0.4.27
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2025-04-03 00:34:05 +00:00
c618436df6 Update Rust crate clap to 4.5.35
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2025-04-02 00:33:59 +00:00
994d39d348 Update Rust crate actix-web to 4.10.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2025-04-01 02:04:40 +00:00
f2862eb020 Fix typo
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-01 00:04:45 +02:00
4bf70337d1 Refresh repository
All checks were successful
continuous-integration/drone/push Build is passing
2025-04-01 00:04:22 +02:00
6 changed files with 614 additions and 364 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: {}

913
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
[package]
name = "hello_world_http"
version = "0.1.0"
edition = "2021"
edition = "2024"
[dependencies]
clap = {version = "4.5.9", features = ["derive", "env"]}
actix-web = "4"
clap = {version = "4.5.35", features = ["derive", "env"]}
actix-web = "4.10.2"
env_logger = "0.11.5"
log = "0.4.22"
log = "0.4.27"

View File

@ -1,2 +1,2 @@
# Hello Wordl HTTP
# Hello World HTTP
Basic HTTP server written in Rust that spawns an HTTP server.

4
renovate.json Normal file
View File

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

View File

@ -1,5 +1,5 @@
use actix_web::middleware::Logger;
use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder};
use actix_web::{App, HttpResponse, HttpServer, Responder, get, post, web};
use clap::Parser;
use env_logger::Env;
@ -45,3 +45,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()
}
}