Skip to content

Commit

Permalink
fix(cli): remove default features from template (#6074)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jan 17, 2023
1 parent 8c842a5 commit b08ae63
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 27 deletions.
6 changes: 6 additions & 0 deletions .changes/template-default-features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'cli.rs': minor
'cli.js': minor
---

Remove default features from Cargo.toml template.
1 change: 0 additions & 1 deletion examples/api/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion examples/resources/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
1 change: 0 additions & 1 deletion examples/sidecar/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
1 change: 0 additions & 1 deletion examples/tauri-dynamic-lib/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../core/tauri", features = [] }

[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
1 change: 0 additions & 1 deletion examples/updater/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
5 changes: 0 additions & 5 deletions examples/web/core/tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
5 changes: 0 additions & 5 deletions examples/workspace/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
1 change: 0 additions & 1 deletion tooling/bench/tests/cpu_intensive/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../../../core/tauri", features = [] }

[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
1 change: 0 additions & 1 deletion tooling/bench/tests/files_transfer/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
1 change: 0 additions & 1 deletion tooling/bench/tests/helloworld/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ serde = { version = "1.0", features = [ "derive" ] }
tauri = { path = "../../../../../core/tauri", features = [] }

[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
6 changes: 2 additions & 4 deletions tooling/cli/templates/app/src-tauri/Cargo.crate-manifest
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ tauri-plugin-{{ plugin_name }} = { path = "../../../" }
tauri-build = {{{ tauri_build_dep }}}

[features]
default = [ "custom-protocol" ]
custom-protocol = [ "tauri/custom-protocol" ]
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit b08ae63

Please sign in to comment.