Skip to content

Commit 4e1af00

Browse files
authored
refactor(core): rename command feature to process-command-api (#3594)
1 parent 9cb1059 commit 4e1af00

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
**Breaking change:** Renamed the `command` Cargo feature to `process-command-api`.

core/tauri/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ http-api = [ "attohttpc" ]
129129
shell-open-api = [ "open", "regex", "tauri-macros/shell-scope" ]
130130
fs-extract-api = [ "zip" ]
131131
reqwest-client = [ "reqwest", "bytes" ]
132-
command = [ "shared_child", "os_pipe", "memchr" ]
132+
process-command-api = [ "shared_child", "os_pipe", "memchr" ]
133133
dialog = [ "rfd" ]
134134
notification = [ "notify-rust" ]
135135
cli = [ "clap" ]
@@ -195,8 +195,8 @@ process-relaunch-dangerous-allow-symlink-macos = [ "tauri-utils/process-relaunch
195195
protocol-all = [ "protocol-asset" ]
196196
protocol-asset = [ ]
197197
shell-all = [ "shell-execute", "shell-sidecar", "shell-open" ]
198-
shell-execute = [ "command", "regex", "tauri-macros/shell-scope" ]
199-
shell-sidecar = [ "command", "regex", "tauri-macros/shell-scope" ]
198+
shell-execute = [ "process-command-api", "regex", "tauri-macros/shell-scope" ]
199+
shell-sidecar = [ "process-command-api", "regex", "tauri-macros/shell-scope" ]
200200
shell-open = [ "shell-open-api" ]
201201
window-all = [
202202
"window-create",

core/tauri/src/api/process.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ use crate::Env;
88

99
use std::path::PathBuf;
1010

11-
#[cfg(feature = "command")]
12-
#[cfg_attr(doc_cfg, doc(cfg(feature = "command")))]
11+
#[cfg(feature = "process-command-api")]
12+
#[cfg_attr(doc_cfg, doc(cfg(feature = "process-command-api")))]
1313
mod command;
14-
#[cfg(feature = "command")]
15-
#[cfg_attr(doc_cfg, doc(cfg(feature = "command")))]
14+
#[cfg(feature = "process-command-api")]
15+
#[cfg_attr(doc_cfg, doc(cfg(feature = "process-command-api")))]
1616
pub use command::*;
1717

1818
/// Finds the current running binary's path.

0 commit comments

Comments
 (0)