diff --git a/Cargo.toml b/Cargo.toml index 05050247e..f21125cc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -114,7 +114,7 @@ byte-unit = "4.0.19" argon2 = { version = "0.5.2", features = ["std"] } rand = { version = "0.8.5", features = ["std"] } jsonwebtoken = { version = "9.3.0", optional = true } -validator = { version = "0.19.0", features = ["derive"] } +validator = { version = "0.20.0", features = ["derive"] } futures-util = "0.3" tower = { workspace = true } hyper = "1.1" diff --git a/examples/demo/Cargo.lock b/examples/demo/Cargo.lock index aa552e7d1..e91a236a9 100644 --- a/examples/demo/Cargo.lock +++ b/examples/demo/Cargo.lock @@ -2722,7 +2722,7 @@ dependencies = [ [[package]] name = "loco-gen" -version = "0.13.2" +version = "0.14.0" dependencies = [ "chrono", "clap", @@ -2740,7 +2740,7 @@ dependencies = [ [[package]] name = "loco-rs" -version = "0.13.2" +version = "0.14.0" dependencies = [ "argon2", "async-trait", @@ -5884,9 +5884,9 @@ dependencies = [ [[package]] name = "validator" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0b4a29d8709210980a09379f27ee31549b73292c87ab9899beee1c0d3be6303" +checksum = "43fb22e1a008ece370ce08a3e9e4447a910e92621bb49b85d6e48a45397e7cfa" dependencies = [ "idna", "once_cell", @@ -5900,9 +5900,9 @@ dependencies = [ [[package]] name = "validator_derive" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bac855a2ce6f843beb229757e6e570a42e837bcb15e5f449dd48d5747d41bf77" +checksum = "b7df16e474ef958526d1205f6dda359fdfab79d9aa6d54bafcb92dcd07673dca" dependencies = [ "darling", "once_cell", diff --git a/examples/demo/Cargo.toml b/examples/demo/Cargo.toml index aa7b90934..d48b8f62d 100644 --- a/examples/demo/Cargo.toml +++ b/examples/demo/Cargo.toml @@ -20,7 +20,7 @@ tokio = { version = "1.33.0", features = ["full"] } async-trait = "0.1.74" tracing = "0.1.40" chrono = "0.4" -validator = { version = "0.19" } +validator = { version = "0.20" } sea-orm = { version = "1.1.0", features = [ "sqlx-sqlite", "sqlx-postgres", diff --git a/examples/llm-candle-inference/Cargo.toml b/examples/llm-candle-inference/Cargo.toml index 6c892e5f1..f7487f8f7 100644 --- a/examples/llm-candle-inference/Cargo.toml +++ b/examples/llm-candle-inference/Cargo.toml @@ -17,7 +17,7 @@ serde_json = "1" tokio = { version = "1.33.0", default-features = false } async-trait = "0.1.74" tracing = "0.1.40" -validator = { version = "0.19.0" } +validator = { version = "0.20.0" } axum = "0.8.1" include_dir = "0.7.3" diff --git a/loco-new/base_template/Cargo.toml.t b/loco-new/base_template/Cargo.toml.t index 4c1044c9a..4d42ad3b2 100644 --- a/loco-new/base_template/Cargo.toml.t +++ b/loco-new/base_template/Cargo.toml.t @@ -39,7 +39,7 @@ sea-orm = { version = "1.1.0", features = [ "macros", ] } chrono = { version = "0.4" } -validator = { version = "0.19" } +validator = { version = "0.20" } uuid = { version = "1.6.0", features = ["v4"] } {%- endif %} diff --git a/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Postgres.snap b/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Postgres.snap index e9bba6a6e..ff0e70b8c 100644 --- a/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Postgres.snap +++ b/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Postgres.snap @@ -2,4 +2,4 @@ source: tests/templates/db.rs expression: "content.get(\"dependencies\").unwrap()" --- -{ async-trait = { version = "0.1.74" }, axum = { version = "0.8.1" }, chrono = { version = "0.4" }, loco-rs = { workspace = true }, migration = { path = "migration" }, regex = { version = "1.11.1" }, sea-orm = { features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls", "macros"], version = "1.1.0" }, serde = { features = ["derive"], version = "1" }, serde_json = { version = "1" }, tokio = { default-features = false, features = ["rt-multi-thread"], version = "1.33.0" }, tracing = { version = "0.1.40" }, tracing-subscriber = { features = ["env-filter", "json"], version = "0.3.17" }, uuid = { features = ["v4"], version = "1.6.0" }, validator = { version = "0.19" } } +{ async-trait = { version = "0.1.74" }, axum = { version = "0.8.1" }, chrono = { version = "0.4" }, loco-rs = { workspace = true }, migration = { path = "migration" }, regex = { version = "1.11.1" }, sea-orm = { features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls", "macros"], version = "1.1.0" }, serde = { features = ["derive"], version = "1" }, serde_json = { version = "1" }, tokio = { default-features = false, features = ["rt-multi-thread"], version = "1.33.0" }, tracing = { version = "0.1.40" }, tracing-subscriber = { features = ["env-filter", "json"], version = "0.3.17" }, uuid = { features = ["v4"], version = "1.6.0" }, validator = { version = "0.20" } } diff --git a/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Sqlite.snap b/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Sqlite.snap index e9bba6a6e..ff0e70b8c 100644 --- a/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Sqlite.snap +++ b/loco-new/tests/templates/snapshots/r#mod__templates__db__cargo_dependencies_Sqlite.snap @@ -2,4 +2,4 @@ source: tests/templates/db.rs expression: "content.get(\"dependencies\").unwrap()" --- -{ async-trait = { version = "0.1.74" }, axum = { version = "0.8.1" }, chrono = { version = "0.4" }, loco-rs = { workspace = true }, migration = { path = "migration" }, regex = { version = "1.11.1" }, sea-orm = { features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls", "macros"], version = "1.1.0" }, serde = { features = ["derive"], version = "1" }, serde_json = { version = "1" }, tokio = { default-features = false, features = ["rt-multi-thread"], version = "1.33.0" }, tracing = { version = "0.1.40" }, tracing-subscriber = { features = ["env-filter", "json"], version = "0.3.17" }, uuid = { features = ["v4"], version = "1.6.0" }, validator = { version = "0.19" } } +{ async-trait = { version = "0.1.74" }, axum = { version = "0.8.1" }, chrono = { version = "0.4" }, loco-rs = { workspace = true }, migration = { path = "migration" }, regex = { version = "1.11.1" }, sea-orm = { features = ["sqlx-sqlite", "sqlx-postgres", "runtime-tokio-rustls", "macros"], version = "1.1.0" }, serde = { features = ["derive"], version = "1" }, serde_json = { version = "1" }, tokio = { default-features = false, features = ["rt-multi-thread"], version = "1.33.0" }, tracing = { version = "0.1.40" }, tracing-subscriber = { features = ["env-filter", "json"], version = "0.3.17" }, uuid = { features = ["v4"], version = "1.6.0" }, validator = { version = "0.20" } } diff --git a/src/doctor.rs b/src/doctor.rs index d32a820c5..13ca8c74a 100644 --- a/src/doctor.rs +++ b/src/doctor.rs @@ -33,7 +33,7 @@ fn get_min_dep_versions() -> &'static HashMap<&'static str, &'static str> { min_vers.insert("tokio", "1.33.0"); min_vers.insert("sea-orm", "1.1.0"); - min_vers.insert("validator", "0.19.0"); + min_vers.insert("validator", "0.20.0"); min_vers.insert("axum", "0.8.1"); min_vers