Skip to content

Commit

Permalink
fix: remove [lib] section in 2.0-alpha tempaltes (#374)
Browse files Browse the repository at this point in the history
* fix: remove `[lib]` section in 2.0-alpha tempaltes

* Update .changes/alpha-template.md
amrbashir authored Mar 14, 2023
1 parent ce4ada2 commit d2c5f1d
Showing 3 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/alpha-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"create-tauri-app": "patch"
"create-tauri-app-js": "patch"
---

Fix `--alpha` templates that are generated without mobile support.
23 changes: 23 additions & 0 deletions packages/cli/fragments/_base_/src-tauri/%(alpha)%Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "{{package_name}}"
version = "0.0.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
tauri-build = { version = "2.0.0-alpha.1", features = [] }

[dependencies]
tauri = { version = "2.0.0-alpha.3", features = ["shell-open"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]

0 comments on commit d2c5f1d

Please sign in to comment.