update tauri to cef/wry feature flag removal

This commit is contained in:
Lucas Nogueira
2026-03-11 11:36:00 -03:00
parent c6561ab6b4
commit 8cf1cb9d02
26 changed files with 146 additions and 59 deletions
@@ -10,7 +10,9 @@ rust-version = "1.77.2"
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true }
tauri-runtime-wry = { workspace = true, optional = true }
tauri-runtime-cef = { workspace = true, optional = true }
tauri-plugin-single-instance = { path = "../../../" }
tauri-plugin-cli = { path = "../../../../cli" }
@@ -18,4 +20,7 @@ tauri-plugin-cli = { path = "../../../../cli" }
tauri-build = { workspace = true }
[features]
default = ["wry"]
wry = ["dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
prod = ["tauri/custom-protocol"]
@@ -7,8 +7,13 @@
windows_subsystem = "windows"
)]
#[cfg(feature = "cef")]
type TauriRuntime = tauri_runtime_cef::CefRuntime<tauri::EventLoopMessage>;
#[cfg(feature = "wry")]
type TauriRuntime = tauri_runtime_wry::Wry<tauri::EventLoopMessage>;
fn main() {
tauri::Builder::default()
tauri::Builder::<TauriRuntime>::new()
.plugin(
tauri_plugin_single_instance::Builder::new()
.callback(move |app, argv, cwd| {