1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

part1: Update dependencies

This commit is contained in:
Yuki Okushi
2020-04-05 02:26:11 +09:00
parent 046604f286
commit 6cdc1c8738
10 changed files with 21 additions and 22 deletions

View File

@ -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"

View File

@ -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,
}