diff --git a/.changes/cargo-feature.md b/.changes/cargo-feature.md new file mode 100644 index 0000000000..7adbce92b0 --- /dev/null +++ b/.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. \ No newline at end of file diff --git a/packages/cli/fragments/base/src-tauri/_Cargo.toml b/packages/cli/fragments/base/src-tauri/_Cargo.toml index 6e79fec82d..c24f9ad974 100644 --- a/packages/cli/fragments/base/src-tauri/_Cargo.toml +++ b/packages/cli/fragments/base/src-tauri/_Cargo.toml @@ -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"]