Skip to content

Commit

Permalink
fix: add shell-open cargo feature to base (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Dec 14, 2022
1 parent 6c35eaf commit fb6e439
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changes/cargo-feature.md
@@ -0,0 +1,6 @@
---
"create-tauri-app": "patch"
"create-tauri-app-js": "patch"
---

Add `shell-open` cargo feature to match the allowlist in the generated project.
8 changes: 4 additions & 4 deletions packages/cli/fragments/base/src-tauri/_Cargo.toml
Expand Up @@ -11,17 +11,17 @@ rust-version = "1.57"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
tauri-build = {version = "1.2", features = [] }
tauri-build = { version = "1.2", features = [] }

[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = {version = "1.2", features = [] }
tauri = { version = "1.2", features = ["shell-open"] }

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

0 comments on commit fb6e439

Please sign in to comment.