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
+6 -1
View File
@@ -7,7 +7,9 @@ edition = { workspace = true }
tauri-build = { workspace = true }
[dependencies]
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 }
serde = { workspace = true }
serde_json = { workspace = true }
tauri-plugin-updater = { path = "../.." }
@@ -15,4 +17,7 @@ tiny_http = "0.12"
time = { version = "0.3", features = ["formatting"] }
[features]
default = ["wry"]
wry = ["dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
prod = ["tauri/custom-protocol"]
@@ -4,13 +4,18 @@
#![cfg_attr(not(debug_assertions), 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>;
use tauri_plugin_updater::UpdaterExt;
fn main() {
#[allow(unused_mut)]
let mut context = tauri::generate_context!();
tauri::Builder::default()
tauri::Builder::<TauriRuntime>::new()
.plugin(tauri_plugin_updater::Builder::new().build())
.setup(|app| {
let handle = app.handle().clone();
@@ -7,7 +7,7 @@ edition = { workspace = true }
tauri-build = { workspace = true }
[dependencies]
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tauri-plugin-updater = { path = "../.." }
@@ -7,8 +7,15 @@ edition = { workspace = true }
tauri-build = { workspace = true }
[dependencies]
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 }
serde = { workspace = true }
serde_json = { workspace = true }
tauri-plugin-updater = { path = "../../.." }
tiny_http = "0.12"
[features]
default = ["wry"]
wry = ["dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
@@ -4,13 +4,18 @@
#![cfg_attr(not(debug_assertions), 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>;
use tauri_plugin_updater::UpdaterExt;
fn main() {
#[allow(unused_mut)]
let mut context = tauri::generate_context!();
tauri::Builder::default()
tauri::Builder::<TauriRuntime>::new()
.plugin(tauri_plugin_updater::Builder::new().build())
.setup(|app| {
println!("version={}", app.package_info().version);