fix(cli): remove default features from template (#6074)

This commit is contained in:
Fabian-Lars
2023-01-17 01:43:29 +01:00
committed by GitHub
parent 8c842a54a6
commit b08ae637a0
14 changed files with 10 additions and 27 deletions

View File

@@ -0,0 +1,6 @@
---
'cli.rs': minor
'cli.js': minor
---
Remove default features from Cargo.toml template.

View File

@@ -49,7 +49,6 @@ mobile-entry-point = "0.1.0"
env_logger = "0.9.0"
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
# default to small, optimized release binaries

View File

@@ -14,5 +14,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../core/tauri", features = ["shell-execute"] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -14,5 +14,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../core/tauri", features = ["process-command-api", "shell-sidecar"] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -19,5 +19,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../core/tauri", features = [] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -15,7 +15,6 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../core/tauri", features = ["updater"] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
[[bin]]

View File

@@ -17,9 +17,4 @@ api = { path = "../api" }
tauri = { path = "../../../../core/tauri", features = ["dialog"] }
[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" ]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -19,9 +19,4 @@ tauri = { path = "../../../core/tauri", features = [] }
core-api = { path = "../core" }
[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" ]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -14,5 +14,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../../../core/tauri", features = [] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -14,5 +14,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../../../core/tauri", features = ["fs-read-file"] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -14,5 +14,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../../../core/tauri", features = [] }
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -20,9 +20,7 @@ serde = { version = "1.0", features = ["derive"] }
tauri = {{{ tauri_dep }}}
[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" ]
# this feature is used for production builds where `devPath` points to the filesystem
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -17,5 +17,4 @@ tauri-plugin-{{ plugin_name }} = { path = "../../../" }
tauri-build = {{{ tauri_build_dep }}}
[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]

View File

@@ -20,9 +20,7 @@ tauri = {{{ tauri_example_dep }}}
tauri-plugin-{{ plugin_name }} = { path = "../../../" }
[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" ]
# this feature is used used for production builds where `devPath` points to the filesystem
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]