Skip to content

Commit fb6e439

Browse files
authored
fix: add shell-open cargo feature to base (#264)
1 parent 6c35eaf commit fb6e439

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.changes/cargo-feature.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+
Add `shell-open` cargo feature to match the allowlist in the generated project.

packages/cli/fragments/base/src-tauri/_Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ rust-version = "1.57"
1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

1313
[build-dependencies]
14-
tauri-build = {version = "1.2", features = [] }
14+
tauri-build = { version = "1.2", features = [] }
1515

1616
[dependencies]
1717
serde_json = "1.0"
1818
serde = { version = "1.0", features = ["derive"] }
19-
tauri = {version = "1.2", features = [] }
19+
tauri = { version = "1.2", features = ["shell-open"] }
2020

2121
[features]
2222
# by default Tauri runs in production mode
2323
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
24-
default = [ "custom-protocol" ]
24+
default = ["custom-protocol"]
2525
# this feature is used used for production builds where `devPath` points to the filesystem
2626
# DO NOT remove this
27-
custom-protocol = [ "tauri/custom-protocol" ]
27+
custom-protocol = ["tauri/custom-protocol"]

0 commit comments

Comments
 (0)