From 77b81af36cc6c03b07c59a2988b0f6d20960f1b0 Mon Sep 17 00:00:00 2001 From: Pylogmon Date: Mon, 16 Oct 2023 00:34:47 +0800 Subject: [PATCH] chore(sql): Refine features for sql plugin (#660) This makes it possible to use the sqlite feature without ring for windows-aarch64 support until all dependencies update to ring 0.17 --- 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 7e25aeac..17239b02 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"]