From 6cdc1c873804439b8de13f634d020f19b33763f9 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 5 Apr 2020 02:26:11 +0900 Subject: [PATCH] part1: Update dependencies --- async_db/Cargo.toml | 8 ++++---- async_ex1/Cargo.toml | 6 +++--- async_ex1/src/main.rs | 4 ++-- async_ex2/Cargo.toml | 5 ++--- basics/Cargo.toml | 2 +- casbin/Cargo.toml | 4 ++-- cookie-auth/Cargo.toml | 2 +- cookie-session/Cargo.toml | 2 +- error_handling/Cargo.toml | 4 ++-- r2d2/Cargo.toml | 6 +++--- 10 files changed, 21 insertions(+), 22 deletions(-) diff --git a/async_db/Cargo.toml b/async_db/Cargo.toml index 4d8e44c6..c1b75985 100644 --- a/async_db/Cargo.toml +++ b/async_db/Cargo.toml @@ -9,12 +9,12 @@ workspace = ".." actix-rt = "1.0.0" actix-web = "2.0.0" -env_logger = "0.6" -failure = "0.1.1" +env_logger = "0.7" +failure = "0.1.7" futures = "0.3.1" num_cpus = "1.10.0" r2d2 = "0.8.2" -r2d2_sqlite = "0.10" -rusqlite = "0.18" +r2d2_sqlite = "0.14" +rusqlite = "0.21" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/async_ex1/Cargo.toml b/async_ex1/Cargo.toml index 5e2c2aaa..d98a07c9 100644 --- a/async_ex1/Cargo.toml +++ b/async_ex1/Cargo.toml @@ -9,9 +9,9 @@ workspace = ".." actix-rt = "1.0.0" actix-web = { version="2.0.0", features=["openssl"] } +env_logger = "0.7" futures = "0.3.1" serde = { version = "1.0.43", features = ["derive"] } serde_json = "1.0.16" -validator = "0.6.3" -validator_derive = "0.6.5" -env_logger = "0.6" +validator = "0.10" +validator_derive = "0.10" diff --git a/async_ex1/src/main.rs b/async_ex1/src/main.rs index 7d2e66f9..44c83b7a 100644 --- a/async_ex1/src/main.rs +++ b/async_ex1/src/main.rs @@ -29,9 +29,9 @@ use validator_derive::Validate; #[derive(Debug, Validate, Deserialize, Serialize)] struct SomeData { - #[validate(length(min = "1", max = "1000000"))] + #[validate(length(min = 1, max = 1000000))] id: String, - #[validate(length(min = "1", max = "100"))] + #[validate(length(min = 1, max = 100))] name: String, } diff --git a/async_ex2/Cargo.toml b/async_ex2/Cargo.toml index 9dd51240..7c35badd 100644 --- a/async_ex2/Cargo.toml +++ b/async_ex2/Cargo.toml @@ -6,12 +6,11 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = { version="2.0.0", features=["openssl"] } +actix-web = { version="2.0.0", features = ["openssl"] } actix-service = "1.0.0" bytes = "0.5.3" -env_logger = "0.6.1" +env_logger = "0.7" futures = "0.3.1" serde = { version = "^1.0", features = ["derive"] } -serde_derive = "1.0.90" serde_json = "1.0.39" time = "0.1.42" diff --git a/basics/Cargo.toml b/basics/Cargo.toml index e39442c4..be3246a5 100644 --- a/basics/Cargo.toml +++ b/basics/Cargo.toml @@ -13,5 +13,5 @@ actix-session = "0.3.0" actix-utils = "1.0.3" futures = "0.3.1" -env_logger = "0.5" +env_logger = "0.7" bytes = "0.5" diff --git a/casbin/Cargo.toml b/casbin/Cargo.toml index 4fe02699..0c4ee816 100644 --- a/casbin/Cargo.toml +++ b/casbin/Cargo.toml @@ -8,5 +8,5 @@ workspace = ".." [dependencies] actix-web = "2.0" actix-rt = "1.0" -casbin = "0.3" -loge = {version = "0.4", default-features = false, features = ["colored", "chrono"]} \ No newline at end of file +casbin = "0.4" +loge = { version = "0.4", default-features = false, features = ["colored", "chrono"] } diff --git a/cookie-auth/Cargo.toml b/cookie-auth/Cargo.toml index 899c5c19..13e92939 100644 --- a/cookie-auth/Cargo.toml +++ b/cookie-auth/Cargo.toml @@ -9,4 +9,4 @@ workspace = ".." actix-web = "2.0.0" actix-identity = "0.2.0" actix-rt = "1.0.0" -env_logger = "0.6" +env_logger = "0.7" diff --git a/cookie-session/Cargo.toml b/cookie-session/Cargo.toml index b5f81d38..778df8b5 100644 --- a/cookie-session/Cargo.toml +++ b/cookie-session/Cargo.toml @@ -12,4 +12,4 @@ actix-rt = "1.0.0" futures = "0.3.1" time = "0.1" -env_logger = "0.6" +env_logger = "0.7" diff --git a/error_handling/Cargo.toml b/error_handling/Cargo.toml index abfb233c..98380fbe 100644 --- a/error_handling/Cargo.toml +++ b/error_handling/Cargo.toml @@ -10,5 +10,5 @@ actix-web = "2.0.0" actix-rt = "1.0.0" derive_more = "0.99.2" futures = "0.3.1" -rand = "0.5.4" -env_logger = "0.6" +rand = "0.7" +env_logger = "0.7" diff --git a/r2d2/Cargo.toml b/r2d2/Cargo.toml index 220d8fa8..e924fe43 100644 --- a/r2d2/Cargo.toml +++ b/r2d2/Cargo.toml @@ -9,9 +9,9 @@ actix-rt = "1.0.0" actix-web = "2.0.0" futures = "0.3.1" -env_logger = "0.6" +env_logger = "0.7" uuid = { version = "0.8", features = ["v4"] } r2d2 = "0.8" -r2d2_sqlite = "0.10" -rusqlite = "0.18" +r2d2_sqlite = "0.14" +rusqlite = "0.21"