Skip to content

Commit

Permalink
refactor(core): rename command feature to process-command-api (#3594
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lucasfernog committed Mar 3, 2022
1 parent 9cb1059 commit 4e1af00
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changes/refactor-command-feature.md
@@ -0,0 +1,5 @@
---
"tauri": patch
---

**Breaking change:** Renamed the `command` Cargo feature to `process-command-api`.
6 changes: 3 additions & 3 deletions core/tauri/Cargo.toml
Expand Up @@ -129,7 +129,7 @@ http-api = [ "attohttpc" ]
shell-open-api = [ "open", "regex", "tauri-macros/shell-scope" ]
fs-extract-api = [ "zip" ]
reqwest-client = [ "reqwest", "bytes" ]
command = [ "shared_child", "os_pipe", "memchr" ]
process-command-api = [ "shared_child", "os_pipe", "memchr" ]
dialog = [ "rfd" ]
notification = [ "notify-rust" ]
cli = [ "clap" ]
Expand Down Expand Up @@ -195,8 +195,8 @@ process-relaunch-dangerous-allow-symlink-macos = [ "tauri-utils/process-relaunch
protocol-all = [ "protocol-asset" ]
protocol-asset = [ ]
shell-all = [ "shell-execute", "shell-sidecar", "shell-open" ]
shell-execute = [ "command", "regex", "tauri-macros/shell-scope" ]
shell-sidecar = [ "command", "regex", "tauri-macros/shell-scope" ]
shell-execute = [ "process-command-api", "regex", "tauri-macros/shell-scope" ]
shell-sidecar = [ "process-command-api", "regex", "tauri-macros/shell-scope" ]
shell-open = [ "shell-open-api" ]
window-all = [
"window-create",
Expand Down
8 changes: 4 additions & 4 deletions core/tauri/src/api/process.rs
Expand Up @@ -8,11 +8,11 @@ use crate::Env;

use std::path::PathBuf;

#[cfg(feature = "command")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "command")))]
#[cfg(feature = "process-command-api")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "process-command-api")))]
mod command;
#[cfg(feature = "command")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "command")))]
#[cfg(feature = "process-command-api")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "process-command-api")))]
pub use command::*;

/// Finds the current running binary's path.
Expand Down

0 comments on commit 4e1af00

Please sign in to comment.