Skip to content

Commit 613cfd3

Browse files
committed
fix(cli): rename Cargo.toml in fragments to _Cargo.toml
1 parent 5034e1f commit 613cfd3

5 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changes/cargo-package.md

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 packaging templates when publishing to crates.io

packages/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readme = "README.md"
99
repository = "https://github.com/tauri-apps/create-tauri-app"
1010
keywords = [ "tauri" ]
1111
categories = [ "gui" ]
12-
include = [ "/fragments", "/src", "*.rs", "/LICENSE*", "/CHANGELOG.md" ]
12+
exclude = [ "/node" ]
1313

1414
[[bin]]
1515
name = "cargo-create-tauri-app"

packages/cli/fragments/fragment-base/src-tauri/Cargo.toml renamed to packages/cli/fragments/fragment-base/src-tauri/_Cargo.toml

File renamed without changes.
File renamed without changes.

packages/cli/src/template.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ impl<'a> Template {
6969

7070
let target_file_name = match &*file_name {
7171
"_gitignore" => ".gitignore",
72+
"_Cargo.toml" => "Cargo.toml",
7273
// conditional files:
7374
// are files that start with a special convention
7475
// "_[<list of package managers separated by `-`>]_<file_name>"

0 commit comments

Comments
 (0)