Skip to content

Commit 766eb7e

Browse files
authored
fix: add crate-type staticlib for mobile build (#612)
1 parent f4de9e7 commit 766eb7e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-tauri-app": patch
3+
---
4+
5+
Add crate-type `staticlib` to `Cargo.toml` for mobile builds.

templates/_base_/src-tauri/Cargo.toml.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99

1010
{% if mobile %}[lib]
1111
name = "{% lib_name %}"
12-
crate-type = ["lib", "cdylib"]
12+
crate-type = ["lib", "cdylib", "staticlib"]
1313

1414
{% endif %}{% if stable %}[build-dependencies]
1515
tauri-build = { version = "1.5", features = [] }

0 commit comments

Comments
 (0)