Skip to content

Commit

Permalink
add dependencie
Browse files Browse the repository at this point in the history
  • Loading branch information
fankaiLiu committed Nov 19, 2023
1 parent df8ec78 commit c2a3a72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/create_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,10 @@ fn handle_dependencies(
conn_type: DbConnectionType,
) {
if need_db_conn {
dependencies["validator"] = json!({
"version": "0.16",
"features": ["derive"]
});
match (conn_type, db_type) {
(DbConnectionType::Sqlx, DbType::Mysql) => {
dependencies["sqlx"] = json!({
Expand Down

0 comments on commit c2a3a72

Please sign in to comment.