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
@@ -13,12 +13,17 @@ edition = "2021"
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-store = { path = "../../../" }
[features]
default = ["wry"]
wry = ["dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
prod = ["tauri/custom-protocol"]
@@ -5,6 +5,11 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![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 serde_json::json;
use tauri::Listener;
use tauri_plugin_store::StoreExt;
@@ -13,7 +18,7 @@ mod app;
use app::settings::AppSettings;
fn main() {
tauri::Builder::default()
tauri::Builder::<TauriRuntime>::new()
.plugin(tauri_plugin_store::Builder::new().build())
.setup(|app| {
// Init store and load it from disk