mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-27 11:56:05 +02:00
fix: adjust Cargo features to fix android build (#375)
This commit is contained in:
committed by
GitHub
parent
ba4ef9a037
commit
fdec66c69f
@@ -69,6 +69,7 @@ impl<R: Runtime> Dialog<R> {
|
||||
|
||||
/// Initializes the plugin.
|
||||
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
#[allow(unused_mut)]
|
||||
let mut builder = Builder::new("dialog");
|
||||
|
||||
// Dialogs are implemented natively on Android
|
||||
|
||||
@@ -19,7 +19,6 @@ http = "0.2"
|
||||
reqwest = { version = "0.11", default-features = false, features = [ "json", "stream" ] }
|
||||
|
||||
[features]
|
||||
default = [ "native-tls-vendored" ]
|
||||
multipart = [ "reqwest/multipart" ]
|
||||
native-tls = [ "reqwest/native-tls" ]
|
||||
native-tls-vendored = [ "reqwest/native-tls-vendored" ]
|
||||
|
||||
@@ -21,7 +21,6 @@ time = "0.3"
|
||||
tokio = { version = "1", features = ["sync"] }
|
||||
|
||||
[features]
|
||||
default = [ "sqlite" ]
|
||||
sqlite = ["sqlx/sqlite"]
|
||||
mysql = ["sqlx/mysql"]
|
||||
postgres = ["sqlx/postgres"]
|
||||
@@ -35,7 +35,6 @@ mockito = "0.31"
|
||||
tokio-test = "0.4.2"
|
||||
|
||||
[features]
|
||||
default = [ "native-tls-vendored" ]
|
||||
native-tls = [ "reqwest/native-tls" ]
|
||||
native-tls-vendored = [ "reqwest/native-tls-vendored" ]
|
||||
rustls-tls = [ "reqwest/rustls-tls" ]
|
||||
|
||||
@@ -17,12 +17,11 @@ log = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
tokio = { version = "1", features = [ "fs" ] }
|
||||
tokio-util = { version = "0.7", features = [ "codec" ] }
|
||||
reqwest = { version = "0.11", features = [ "json", "stream" ] }
|
||||
reqwest = { version = "0.11", default-features = false, features = [ "json", "stream" ] }
|
||||
futures-util = "0.3"
|
||||
read-progress-stream = "1.0.0"
|
||||
|
||||
[features]
|
||||
default = [ "native-tls-vendored" ]
|
||||
native-tls = [ "reqwest/native-tls" ]
|
||||
native-tls-vendored = [ "reqwest/native-tls-vendored" ]
|
||||
rustls-tls = [ "reqwest/rustls-tls" ]
|
||||
@@ -18,10 +18,9 @@ thiserror = { workspace = true }
|
||||
rand = "0.8"
|
||||
futures-util = "0.3"
|
||||
tokio = { version = "1", features = ["net", "sync"] }
|
||||
tokio-tungstenite = { version = "0.18", features = ["native-tls"] }
|
||||
tokio-tungstenite = { version = "0.18" }
|
||||
|
||||
[features]
|
||||
default = [ "native-tls-vendored" ]
|
||||
native-tls = [ "tokio-tungstenite/native-tls" ]
|
||||
native-tls-vendored = [ "tokio-tungstenite/native-tls-vendored" ]
|
||||
rustls-tls-webpki-roots = [ "tokio-tungstenite/rustls-tls-webpki-roots" ]
|
||||
|
||||
Reference in New Issue
Block a user