Skip to content

Commit 701ab3b

Browse files
authored
fix: Use relative path for RustEmbed macro, fixes #447 (#448)
1 parent a5f9466 commit 701ab3b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changes/rustembed-panic.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": "patch"
3+
"create-tauri-app-js": "patch"
4+
---
5+
6+
Fix build panic with newer minor versions of `rust-embed`.

packages/cli/src/template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rust_embed::RustEmbed;
1010
use crate::{manifest::Manifest, package_manager::PackageManager};
1111

1212
#[derive(RustEmbed)]
13-
#[folder = "$CARGO_MANIFEST_DIR/fragments"]
13+
#[folder = "fragments"]
1414
#[allow(clippy::upper_case_acronyms)]
1515
struct FRAGMENTS;
1616

0 commit comments

Comments
 (0)