From c837466536b47e54b6e60c960a00a6acbf33d53f Mon Sep 17 00:00:00 2001 From: liyunjia Date: Sun, 13 Oct 2024 10:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8feature?= =?UTF-8?q?=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 13 ------------- app.toml | 4 ++-- domain/Cargo.toml | 2 +- library/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 152fcfb..9320947 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1921,7 +1921,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c58f8c84392efc0a126acce10fa59ff7b3d2ac06ab451a33f2741989b806b044" dependencies = [ "once_cell", - "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -2265,8 +2264,6 @@ dependencies = [ "once_cell", "paste", "percent-encoding", - "rustls", - "rustls-pemfile", "serde", "serde_json", "sha2", @@ -2278,7 +2275,6 @@ dependencies = [ "tracing", "url", "uuid", - "webpki-roots", ] [[package]] @@ -3131,15 +3127,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webpki-roots" -version = "0.26.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd7c23921eeb1713a4e851530e9b9756e4fb0e89978582942612524cf09f01cd" -dependencies = [ - "rustls-pki-types", -] - [[package]] name = "whoami" version = "1.5.1" diff --git a/app.toml b/app.toml index 884dde3..33028ad 100644 --- a/app.toml +++ b/app.toml @@ -20,8 +20,8 @@ expires = 1800 refresh_expires = 3600 [redis] -# url = "47.95.198.7:33000" -url = "127.0.0.1:33001" +url = "47.95.198.7:33000" +# url = "127.0.0.1:33001" password = "3aB7kRt9pDf1nQzW" db = 0 diff --git a/domain/Cargo.toml b/domain/Cargo.toml index 4a294e2..eb30483 100644 --- a/domain/Cargo.toml +++ b/domain/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [dependencies] serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -sqlx = { workspace = true, features = ["postgres", "uuid", "macros", "sqlx-macros", "chrono"] } +sqlx = { workspace = true, features = ["postgres", "uuid", "macros", "sqlx-macros", "chrono", "runtime-tokio", "json"] } validator = { workspace = true, features = ["derive"] } chrono = { workspace = true, features = ["serde"]} tracing = { workspace = true } diff --git a/library/Cargo.toml b/library/Cargo.toml index 5babd49..40d4995 100644 --- a/library/Cargo.toml +++ b/library/Cargo.toml @@ -11,7 +11,7 @@ tracing = { workspace = true } tracing-appender = { workspace = true } tracing-subscriber = { workspace = true, features = ["json"] } chrono = { workspace = true } -sqlx = { workspace = true, features = ["runtime-tokio-rustls", "macros", "json"] } +sqlx = { workspace = true } sqlx-postgres = { workspace = true, features = ["json"] } axum = { workspace = true } axum-extra = { workspace = true }