diff --git a/Cargo.lock b/Cargo.lock index 0c4849a..1f69925 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1238,7 +1238,7 @@ checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "salvo-cli" -version = "0.1.47" +version = "0.1.48" dependencies = [ "ansi_term", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 4f42444..916fe7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "salvo-cli" -version = "0.1.47" +version = "0.1.48" edition = "2021" authors = ["Fankai Liu liufankai137@outlook.com","mrxiaozhuox mrxzx.info@gmail.com"] keywords = ["salvo", "cli","template"] diff --git a/src/utils/create_project.rs b/src/utils/create_project.rs index b528e6b..a2dde99 100644 --- a/src/utils/create_project.rs +++ b/src/utils/create_project.rs @@ -591,7 +591,7 @@ fn handle_dependencies( ) { if need_db_conn { dependencies["validator"] = json!({ - "version": "0.16", + "version": "0.18", "features": ["derive"] }); match (conn_type, db_type) { @@ -633,19 +633,19 @@ fn handle_dependencies( } (DbConnectionType::Diesel, DbType::Mysql) => { dependencies["diesel"] = json!({ - "version": "2.1.0", + "version": "2.1.5", "features": ["mysql"] }); } (DbConnectionType::Diesel, DbType::Postgres) => { dependencies["diesel"] = json!({ - "version": "2.1.0", + "version": "2.1.5", "features": ["postgres"] }); } (DbConnectionType::Diesel, DbType::Sqlite) => { dependencies["diesel"] = json!({ - "version": "2.1.0", + "version": "2.1.5", "features": ["sqlite","returning_clauses_for_sqlite_3_35"] }); } @@ -708,7 +708,7 @@ fn handle_dependencies( }); //add argon2 dependency dependencies["argon2"] = json!({ - "version": "0.5.2", + "version": "0.5.3", }); } }