clean up code and remove dependencies

This commit is contained in:
2021-09-01 13:45:42 +02:00
parent d8b4952be2
commit 96260d18ce
4 changed files with 2 additions and 7 deletions

1
Cargo.lock generated
View File

@@ -994,7 +994,6 @@ dependencies = [
name = "ics-proxy" name = "ics-proxy"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"actix-http",
"actix-web", "actix-web",
"reqwest", "reqwest",
"tera", "tera",

View File

@@ -7,6 +7,5 @@ edition = "2018"
[dependencies] [dependencies]
actix-web = "3" actix-web = "3"
actix-http = "2"
reqwest = { version = "0.11", features = ["blocking"] } reqwest = { version = "0.11", features = ["blocking"] }
tera = "1.12.1" tera = "1.12.1"

View File

@@ -1,9 +1,5 @@
use std::collections::HashMap; use std::collections::HashMap;
use actix_http::{body::Body, Response};
use actix_web::dev::ServiceResponse;
use actix_web::http::StatusCode;
use actix_web::middleware::errhandlers::{ErrorHandlerResponse, ErrorHandlers};
use actix_web::{error, web, App, Error, HttpRequest, HttpResponse, HttpServer, Responder, Result}; use actix_web::{error, web, App, Error, HttpRequest, HttpResponse, HttpServer, Responder, Result};
use tera::Tera; use tera::Tera;

View File

@@ -1 +1,2 @@
cargo watch -x 'run --bin ics-proxy' # Requires cargo-watch (install with: 'cargo install cargo-watch')
cargo watch -x 'run --bin ics-proxy'