Skip to content

Commit 8bf1fca

Browse files
authored
fix: cargo.toml format when mobile feature enabled (#519)
1 parent ebfd582 commit 8bf1fca

2 files changed

Lines changed: 8 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+
Fix an incorrect format in `src-tauri/Cargo.toml` when mobile feature enabled.

packages/cli/fragments/_base_/src-tauri/Cargo.toml.lts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ edition = "2021"
1111

1212
{% if mobile %}[lib]
1313
name = "{% lib_name %}"
14-
crate-type = ["staticlib", "cdylib", "rlib"]{% endif %}{% if stable %}[build-dependencies]
14+
crate-type = ["staticlib", "cdylib", "rlib"]
15+
16+
{% endif %}{% if stable %}[build-dependencies]
1517
tauri-build = { version = "1.5", features = [] }
1618

1719
[dependencies]

0 commit comments

Comments
 (0)