Browse Source

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 <lucas@tauri.app>
Masahiko Sakakibara 11 months ago
parent
commit
03f2a50981

+ 6 - 0
.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.

+ 2 - 2
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",

+ 1 - 1
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"] }

+ 1 - 1
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"

+ 1 - 0
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 = "../../../" }
+