chore: update tauri

This commit is contained in:
Lucas Nogueira
2026-09-08 17:53:34 -03:00
parent 1423992771
commit 835adce473
34 changed files with 866 additions and 272 deletions
-3
View File
@@ -29,6 +29,3 @@ serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
-2
View File
@@ -31,8 +31,6 @@ tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
arboard = { version = "3", features = ["wayland-data-control"] }
+1 -1
View File
@@ -14,7 +14,7 @@
"@tauri-apps/plugin-deep-link": "2.4.9"
},
"devDependencies": {
"@tauri-apps/cli-cef": "3.0.0-alpha.6",
"@tauri-apps/cli-cef": "3.0.0-alpha.26",
"typescript": "^6.0.0",
"vite": "^8.0.1"
}
@@ -19,7 +19,13 @@ tauri-build = { workspace = true }
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true, features = ["common-controls-v6"] }
# The webview runtime is picked by depending on its crate and handing its
# attributes to `tauri::Builder::runtime`.
tauri-runtime-wry = { workspace = true, optional = true, features = [
"common-controls-v6",
] }
tauri-runtime-cef = { workspace = true, optional = true }
tauri-plugin-deep-link = { path = "../../../" }
tauri-plugin-log = { path = "../../../../log" }
tauri-plugin-single-instance = { path = "../../../../single-instance", features = [
@@ -28,6 +34,9 @@ tauri-plugin-single-instance = { path = "../../../../single-instance", features
log = "0.4"
[features]
default = ["wry"]
wry = ["dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
# this feature is used for production builds or when `devUrl` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT REMOVE!!
@@ -10,10 +10,19 @@ fn greet(name: &str) -> String {
format!("Hello, {name}! You've been greeted from Rust!")
}
// Every CEF application is also its own renderer, GPU, network and utility
// process. This attribute runs the helper side of that and returns before the
// Tauri application is built, for any process Chromium launched with `--type=`.
#[cfg_attr(feature = "cef", tauri_runtime_cef::cef_entry_point)]
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
#[cfg(feature = "cef")]
let builder = tauri::Builder::default().runtime(tauri_runtime_cef::Cef::default());
#[cfg(not(feature = "cef"))]
let builder = tauri::Builder::default().runtime(tauri_runtime_wry::Wry::default());
#[allow(unused_mut)]
let mut builder = tauri::Builder::default();
let mut builder = builder;
#[cfg(desktop)]
{
+1 -1
View File
@@ -28,6 +28,6 @@
"@tauri-apps/api": "^2.11.0"
},
"devDependencies": {
"@tauri-apps/cli-cef": "3.0.0-alpha.6"
"@tauri-apps/cli-cef": "3.0.0-alpha.26"
}
}
-4
View File
@@ -27,8 +27,6 @@ ios = { level = "partial", notes = "Does not support folder picker" }
[build-dependencies]
tauri-plugin = { workspace = true, features = ["build"] }
[dev-dependencies]
tauri = { workspace = true, features = ["wry"] }
[dependencies]
serde = { workspace = true }
@@ -39,8 +37,6 @@ thiserror = { workspace = true }
url = { workspace = true }
tauri-plugin-fs = { path = "../fs", version = "2.5.1" }
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
rfd = { version = "0.16", default-features = false, features = [
-2
View File
@@ -29,8 +29,6 @@ log = { workspace = true }
thiserror = { workspace = true }
specta = { workspace = true, optional = true }
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
[features]
specta = ["dep:specta", "tauri/specta"]
-2
View File
@@ -29,8 +29,6 @@ log = { workspace = true }
thiserror = { workspace = true }
specta = { workspace = true, optional = true }
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
[features]
specta = ["dep:specta", "tauri/specta"]
-2
View File
@@ -33,8 +33,6 @@ time = { version = "0.3", features = ["serde", "parsing", "formatting"] }
url = { version = "2", features = ["serde"] }
serde_repr = "0.1"
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
[target."cfg(windows)".dependencies]
win7-notifications = { version = "0.4.5", optional = true }
-3
View File
@@ -57,6 +57,3 @@ features = ["std", "NSWorkspace"]
version = "0.3"
default-features = false
features = ["std", "NSURL", "NSArray", "NSString"]
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
-3
View File
@@ -33,6 +33,3 @@ regex = "1"
open = { version = "5", features = ["shellexecute-on-windows"] }
encoding_rs = "0.8"
os_pipe = "1"
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
@@ -9,6 +9,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@tauri-apps/cli-cef": "3.0.0-alpha.6"
"@tauri-apps/cli-cef": "3.0.0-alpha.26"
}
}
@@ -10,7 +10,13 @@ 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, features = ["common-controls-v6"] }
# The webview runtime is picked by depending on its crate and handing its
# attributes to `tauri::Builder::runtime`.
tauri-runtime-wry = { workspace = true, optional = true, features = [
"common-controls-v6",
] }
tauri-runtime-cef = { workspace = true, optional = true }
tauri-plugin-single-instance = { path = "../../../" }
tauri-plugin-cli = { path = "../../../../cli" }
@@ -18,4 +24,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,17 @@
windows_subsystem = "windows"
)]
// Every CEF application is also its own renderer, GPU, network and utility
// process. This attribute runs the helper side of that and returns before the
// Tauri application is built, for any process Chromium launched with `--type=`.
#[cfg_attr(feature = "cef", tauri_runtime_cef::cef_entry_point)]
fn main() {
tauri::Builder::default()
#[cfg(feature = "cef")]
let builder = tauri::Builder::default().runtime(tauri_runtime_cef::Cef::default());
#[cfg(not(feature = "cef"))]
let builder = tauri::Builder::default().runtime(tauri_runtime_wry::Wry::default());
builder
.plugin(
tauri_plugin_single_instance::Builder::new()
.callback(move |app, argv, cwd| {
-6
View File
@@ -27,9 +27,3 @@ tracing = { workspace = true }
thiserror = { workspace = true }
dunce = { workspace = true }
tokio = { version = "1", features = ["sync", "time", "macros"] }
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
[dev-dependencies]
tauri = { workspace = true, features = ["wry"] }
@@ -8,7 +8,7 @@
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli-cef": "3.0.0-alpha.6",
"@tauri-apps/cli-cef": "3.0.0-alpha.26",
"typescript": "^6.0.0",
"vite": "^8.0.1"
}
@@ -13,12 +13,21 @@ edition = "2021"
tauri-build = { workspace = true }
[dependencies]
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true, features = ["common-controls-v6"] }
# The webview runtime is picked by depending on its crate and handing its
# attributes to `tauri::Builder::runtime`.
tauri-runtime-wry = { workspace = true, optional = true, features = [
"common-controls-v6",
] }
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"]
@@ -12,8 +12,17 @@ use tauri_plugin_store::StoreExt;
mod app;
use app::settings::AppSettings;
// Every CEF application is also its own renderer, GPU, network and utility
// process. This attribute runs the helper side of that and returns before the
// Tauri application is built, for any process Chromium launched with `--type=`.
#[cfg_attr(feature = "cef", tauri_runtime_cef::cef_entry_point)]
fn main() {
tauri::Builder::default()
#[cfg(feature = "cef")]
let builder = tauri::Builder::default().runtime(tauri_runtime_cef::Cef::default());
#[cfg(not(feature = "cef"))]
let builder = tauri::Builder::default().runtime(tauri_runtime_wry::Wry::default());
builder
.plugin(tauri_plugin_store::Builder::new().build())
.setup(|app| {
// Init store and load it from disk
+2 -1
View File
@@ -7,7 +7,8 @@ edition = { workspace = true }
tauri-build = { workspace = true }
[dependencies]
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true, features = ["common-controls-v6"] }
tauri-runtime-wry = { workspace = true, features = ["common-controls-v6"] }
serde = { workspace = true }
serde_json = { workspace = true }
tauri-plugin-updater = { path = "../.." }
@@ -11,6 +11,7 @@ fn main() {
let mut context = tauri::generate_context!();
tauri::Builder::default()
.runtime(tauri_runtime_wry::Wry::default())
.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, features = ["common-controls-v6"] }
serde = { workspace = true }
serde_json = { workspace = true }
tauri-plugin-updater = { path = "../.." }
@@ -7,7 +7,8 @@ edition = { workspace = true }
tauri-build = { workspace = true }
[dependencies]
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true, features = ["common-controls-v6"] }
tauri-runtime-wry = { workspace = true, features = ["common-controls-v6"] }
serde = { workspace = true }
serde_json = { workspace = true }
tauri-plugin-updater = { path = "../../.." }
@@ -11,6 +11,7 @@ fn main() {
let mut context = tauri::generate_context!();
tauri::Builder::default()
.runtime(tauri_runtime_wry::Wry::default())
.plugin(tauri_plugin_updater::Builder::new().build())
.setup(|app| {
println!("version={}", app.package_info().version);
@@ -9,7 +9,7 @@
"preview": "vite preview"
},
"devDependencies": {
"@tauri-apps/cli-cef": "3.0.0-alpha.6",
"@tauri-apps/cli-cef": "3.0.0-alpha.26",
"typescript": "^6.0.0",
"vite": "^8.0.1"
},
@@ -7,7 +7,13 @@ edition = "2021"
[dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true, features = ["wry", "common-controls-v6", "x11"] }
tauri = { workspace = true, features = ["common-controls-v6"] }
# The webview runtime is picked by depending on its crate and handing its
# attributes to `tauri::Builder::runtime`.
tauri-runtime-wry = { workspace = true, optional = true, features = [
"common-controls-v6",
] }
tauri-runtime-cef = { workspace = true, optional = true }
tokio = { version = "1", features = ["net"] }
futures-util = "0.3"
tauri-plugin-websocket = { path = "../../../" }
@@ -17,4 +23,7 @@ tokio-tungstenite = "0.29"
tauri-build = { workspace = true }
[features]
default = ["wry"]
wry = ["dep:tauri-runtime-wry"]
cef = ["dep:tauri-runtime-cef"]
prod = ["tauri/custom-protocol"]
@@ -33,9 +33,19 @@ async fn accept_connection(stream: TcpStream) {
}
}
// Every CEF application is also its own renderer, GPU, network and utility
// process. This attribute runs the helper side of that and returns before the
// Tauri application is built, for any process Chromium launched with `--type=`.
#[cfg_attr(feature = "cef", tauri_runtime_cef::cef_entry_point)]
fn main() {
tauri::async_runtime::spawn(start_server());
tauri::Builder::default()
#[cfg(feature = "cef")]
let builder = tauri::Builder::default().runtime(tauri_runtime_cef::Cef::default());
#[cfg(not(feature = "cef"))]
let builder = tauri::Builder::default().runtime(tauri_runtime_wry::Wry::default());
builder
.plugin(tauri_plugin_websocket::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");