From ebdcdf8130a257fc2cc3f71e876e412b18e541a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Fro=C5=82ow?= Date: Sun, 12 Jan 2020 16:25:52 +0100 Subject: [PATCH] Remove unused deps found with https://github.com/est31/cargo-udeps (#232) --- async_db/Cargo.toml | 1 - async_ex1/src/main.rs | 3 +-- async_ex2/Cargo.toml | 3 --- template_askama/Cargo.toml | 1 - web-cors/backend/Cargo.toml | 1 - 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/async_db/Cargo.toml b/async_db/Cargo.toml index e6ec7969..b994daae 100644 --- a/async_db/Cargo.toml +++ b/async_db/Cargo.toml @@ -9,7 +9,6 @@ workspace = ".." actix-rt = "1.0.0" actix-web = "2.0.0" -dotenv = "0.10" env_logger = "0.6" failure = "0.1.1" futures = "0.3.1" diff --git a/async_ex1/src/main.rs b/async_ex1/src/main.rs index f78744c7..7d2e66f9 100644 --- a/async_ex1/src/main.rs +++ b/async_ex1/src/main.rs @@ -12,8 +12,6 @@ // - POSTing json body // 3. chaining futures into a single response used by an async endpoint -#[macro_use] -extern crate validator_derive; use serde::{Deserialize, Serialize}; use std::collections::HashMap; @@ -27,6 +25,7 @@ use actix_web::{ }; use futures::StreamExt; use validator::Validate; +use validator_derive::Validate; #[derive(Debug, Validate, Deserialize, Serialize)] struct SomeData { diff --git a/async_ex2/Cargo.toml b/async_ex2/Cargo.toml index f5cb6410..9dd51240 100644 --- a/async_ex2/Cargo.toml +++ b/async_ex2/Cargo.toml @@ -7,7 +7,6 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" actix-web = { version="2.0.0", features=["openssl"] } -actix-multipart = "0.2.0" actix-service = "1.0.0" bytes = "0.5.3" env_logger = "0.6.1" @@ -16,5 +15,3 @@ serde = { version = "^1.0", features = ["derive"] } serde_derive = "1.0.90" serde_json = "1.0.39" time = "0.1.42" -validator = "0.8.0" -validator_derive = "0.8.0" diff --git a/template_askama/Cargo.toml b/template_askama/Cargo.toml index 58b10477..27c09722 100644 --- a/template_askama/Cargo.toml +++ b/template_askama/Cargo.toml @@ -7,7 +7,6 @@ edition = "2018" [dependencies] actix-web = "2.0.0" actix-rt = "1.0.0" -env_logger = "0.6" askama = "0.8" [build-dependencies] diff --git a/web-cors/backend/Cargo.toml b/web-cors/backend/Cargo.toml index 52dfd4fb..10c3d11a 100644 --- a/web-cors/backend/Cargo.toml +++ b/web-cors/backend/Cargo.toml @@ -10,6 +10,5 @@ actix-web = "2.0.0" actix-cors = "0.2.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -dotenv = "0.10" env_logger = "0.6" futures = "0.3"