diff --git a/Cargo.lock b/Cargo.lock index dc5d654..6b95a11 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -994,7 +994,6 @@ dependencies = [ name = "ics-proxy" version = "0.1.0" dependencies = [ - "actix-http", "actix-web", "reqwest", "tera", diff --git a/Cargo.toml b/Cargo.toml index e2abfe5..5fad20e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,5 @@ edition = "2018" [dependencies] actix-web = "3" -actix-http = "2" reqwest = { version = "0.11", features = ["blocking"] } tera = "1.12.1" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 578912b..3eb7956 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,5 @@ 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 tera::Tera; diff --git a/watch.sh b/watch.sh index ed1a9fe..4303c8a 100755 --- a/watch.sh +++ b/watch.sh @@ -1 +1,2 @@ -cargo watch -x 'run --bin ics-proxy' \ No newline at end of file +# Requires cargo-watch (install with: 'cargo install cargo-watch') +cargo watch -x 'run --bin ics-proxy'