From 5df6f732e8e4429ec282349c117a9f1c9416e2d1 Mon Sep 17 00:00:00 2001 From: robatipoor Date: Wed, 1 Nov 2023 11:33:44 +0330 Subject: [PATCH] add dot files --- .dockerignore | 5 +++++ .env | 4 ++++ Cargo.toml | 14 +++++++------- run.sh | 1 - rustfmt.toml | 1 - 5 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 .dockerignore create mode 100644 .env diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..64c0fd5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.env +.dockerignore +Dockerfile +target/ +scripts/ diff --git a/.env b/.env new file mode 100644 index 0000000..e21e6b3 --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +APP_PROFILE=dev +RUST_BACKTRACE=1 +RUST_LOG=info +DATABASE_URL=postgres://postgres_user:postgres_pass@localhost:5432/postgres_db diff --git a/Cargo.toml b/Cargo.toml index add297e..5c173e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rustfulapi" -authors = ["Mahdi "] +authors = ["Mahdi Robatipoor"] description = "RESTful API template built with Rust language" edition = "2021" homepage = "https://github.com/robatipoor/rustfulapi" @@ -35,8 +35,8 @@ hex = "0.4.3" hex-literal = "0.4.1" hmac = "0.12.1" itertools = "0.11.0" -jsonwebtoken = "8.3.0" -lettre = { version = "0.10.4", features = ["tokio1-native-tls", "builder"] } +jsonwebtoken = "9.1.0" +lettre = { version = "0.11.1", features = ["tokio1-native-tls", "builder"] } log = "0.4.20" log-derive = "0.4.1" mockall = "0.11.4" @@ -64,17 +64,17 @@ tracing = "0.1.37" tracing-actix-web = "0.7.6" tracing-appender = "0.2.2" tracing-bunyan-formatter = "0.3.9" -tracing-log = "0.1.3" +tracing-log = "0.2.0" tracing-subscriber = { version = "0.3.17", features = [ "registry", "env-filter", ] } url = "2.4.1" -utoipa = { version = "3.5.0", features = ["axum_extras", "uuid", "chrono"] } -utoipa-swagger-ui = { version = "3.1.5", features = ["axum"] } +utoipa = { version = "4.0.0", features = ["axum_extras", "uuid", "chrono"] } +utoipa-swagger-ui = { version = "4.0.0", features = ["axum"] } uuid = { version = "1.4.1", features = ["v4", "serde"] } validator = { version = "0.16.1", features = ["derive"] } tokio-tungstenite = "0.20.0" wiremock = "0.5.19" -garde = "0.15.0" +garde = "0.16.0" regex = "1.9.5" diff --git a/run.sh b/run.sh index c2f9075..ac0a77f 100755 --- a/run.sh +++ b/run.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash - ./scripts/init_redis.sh ./scripts/init_mailhog.sh ./scripts/init_postgres.sh diff --git a/rustfmt.toml b/rustfmt.toml index 5ae949a..d9790f9 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,7 +1,6 @@ # rustfmt configurations from master branch, check rustfmt version # (cargo fmt --version). # https://github.com/rust-lang/rustfmt/blob/master/Configurations.md - edition = "2021" tab_spaces = 2 reorder_imports = true