refactor(core): rename command feature to process-command-api (#3594)

This commit is contained in:
Lucas Fernandes Nogueira
2022-03-03 10:40:44 -03:00
committed by GitHub
parent 9cb1059aa3
commit 4e1af005a1
3 changed files with 12 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri": patch
---
**Breaking change:** Renamed the `command` Cargo feature to `process-command-api`.

View File

@@ -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" ]
@@ -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",

View File

@@ -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.