From 03f2a50981b8c01b1c196811fce9d93f1bf0820d Mon Sep 17 00:00:00 2001 From: Masahiko Sakakibara Date: Tue, 27 Aug 2024 20:22:13 +0900 Subject: [PATCH] fix(core): update swift-rs to fix iOS plugin builds (#10718) * fix(cli): add comment suggest to use patch swift-rs * Create change-pr-10718.md * swift-rs 1.0.7 (still not published) [skip ci] * update lockfile --------- Co-authored-by: Lucas Nogueira --- .changes/change-pr-10718.md | 6 ++++++ Cargo.lock | 4 ++-- core/tauri-utils/Cargo.toml | 2 +- core/tauri/Cargo.toml | 2 +- .../__example-api/tauri-app/src-tauri/Cargo.crate-manifest | 1 + 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .changes/change-pr-10718.md diff --git a/.changes/change-pr-10718.md b/.changes/change-pr-10718.md new file mode 100644 index 000000000..b1f739400 --- /dev/null +++ b/.changes/change-pr-10718.md @@ -0,0 +1,6 @@ +--- +"tauri": 'patch:bug' +"tauri-utils": 'patch:bug' +--- + +Update swift-rs fixing a plugin build when native dependencies are used. diff --git a/Cargo.lock b/Cargo.lock index cb45cb582..2ddabe51b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3708,9 +3708,9 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "swift-rs" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bbdb58577b6301f8d17ae2561f32002a5bae056d444e0f69e611e504a276204" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" dependencies = [ "base64 0.21.7", "serde", diff --git a/core/tauri-utils/Cargo.toml b/core/tauri-utils/Cargo.toml index 5f8fe4a00..288fc3dfa 100644 --- a/core/tauri-utils/Cargo.toml +++ b/core/tauri-utils/Cargo.toml @@ -45,7 +45,7 @@ cargo_metadata = { version = "0.18", optional = true } serde-untagged = "0.1" [target."cfg(target_os = \"macos\")".dependencies] -swift-rs = { version = "1.0.6", optional = true, features = ["build"] } +swift-rs = { version = "1.0.7", optional = true, features = ["build"] } [dev-dependencies] getrandom = { version = "0.2", features = ["std"] } diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index acb416567..ec0e8174e 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -109,7 +109,7 @@ jni = "0.21" libc = "0.2" objc = "0.2" cocoa = "0.26" -swift-rs = "1.0.6" +swift-rs = "1.0.7" [build-dependencies] heck = "0.5" diff --git a/tooling/cli/templates/plugin/__example-api/tauri-app/src-tauri/Cargo.crate-manifest b/tooling/cli/templates/plugin/__example-api/tauri-app/src-tauri/Cargo.crate-manifest index 09b2aed44..96624d4b8 100644 --- a/tooling/cli/templates/plugin/__example-api/tauri-app/src-tauri/Cargo.crate-manifest +++ b/tooling/cli/templates/plugin/__example-api/tauri-app/src-tauri/Cargo.crate-manifest @@ -20,3 +20,4 @@ tauri-build = {{ tauri_build_dep }} [dependencies] tauri = {{ tauri_example_dep }} tauri-plugin-{{ plugin_name }} = { path = "../../../" } +