From 5fab5f06d37110bf7c20bc5e4f79e730edb0d1fe Mon Sep 17 00:00:00 2001 From: Pylogmon Date: Sun, 15 Oct 2023 19:40:28 +0800 Subject: [PATCH] refactor: Refine features for sql --- plugins/sql/Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/sql/Cargo.toml b/plugins/sql/Cargo.toml index 7e25aeacf6..17239b0233 100644 --- a/plugins/sql/Cargo.toml +++ b/plugins/sql/Cargo.toml @@ -17,11 +17,11 @@ tauri.workspace = true log.workspace = true thiserror.workspace = true futures-core = "0.3" -sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "json", "time"] } +sqlx = { version = "0.7", features = ["json", "time"] } time = "0.3" tokio = { version = "1", features = ["sync"] } [features] -sqlite = ["sqlx/sqlite"] -mysql = ["sqlx/mysql"] -postgres = ["sqlx/postgres"] +sqlite = ["sqlx/sqlite", "sqlx/runtime-tokio"] +mysql = ["sqlx/mysql", "sqlx/runtime-tokio-rustls"] +postgres = ["sqlx/postgres", "sqlx/runtime-tokio-rustls"]