mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 13:41:39 +03:00
Fix(core): import regex if shell-open is enabled. (#3339)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
parent
52e9a6d81a
commit
7d2a6d8055
@ -24,12 +24,12 @@ tauri-utils = { version = "1.0.0-beta.3", path = "../tauri-utils", features = [
|
||||
thiserror = "1"
|
||||
walkdir = "2"
|
||||
zstd = { version = "0.10", optional = true }
|
||||
regex = "1"
|
||||
regex = { version = "1", optional = true }
|
||||
uuid = { version = "0.8", features = [ "v4" ] }
|
||||
|
||||
[features]
|
||||
default = [ "compression" ]
|
||||
compression = [ "zstd", "tauri-utils/compression" ]
|
||||
isolation = ["tauri-utils/isolation"]
|
||||
shell-scope = []
|
||||
shell-scope = ["regex"]
|
||||
config-json5 = [ "tauri-utils/config-json5" ]
|
||||
|
@ -56,7 +56,7 @@ fn main() {
|
||||
shell_sidecar: { any(shell_all, feature = "shell-sidecar") },
|
||||
shell_open: { any(shell_all, feature = "shell-open") },
|
||||
// helper for the shell scope functionality
|
||||
shell_scope: { any(shell_execute, shell_open, shell_sidecar, feature = "shell-open-api") },
|
||||
shell_scope: { any(shell_execute, shell_sidecar, feature = "shell-open-api") },
|
||||
|
||||
// dialog
|
||||
dialog_all: { any(api_all, feature = "dialog-all") },
|
||||
|
@ -133,7 +133,7 @@
|
||||
pub use embed_plist;
|
||||
/// The Tauri error enum.
|
||||
pub use error::Error;
|
||||
#[cfg(feature = "shell-execute")]
|
||||
#[cfg(shell_scope)]
|
||||
#[doc(hidden)]
|
||||
pub use regex;
|
||||
pub use tauri_macros::{command, generate_handler};
|
||||
|
Loading…
Reference in New Issue
Block a user