|
@@ -2987,7 +2987,7 @@ mod build {
|
|
|
macro_rules! literal_struct {
|
|
|
($tokens:ident, $struct:ident, $($field:ident),+) => {
|
|
|
$tokens.append_all(quote! {
|
|
|
- ::tauri::utils::config::$struct {
|
|
|
+ ::tauri_utils::config::$struct {
|
|
|
$($field: #$field),+
|
|
|
}
|
|
|
});
|
|
@@ -2996,7 +2996,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for WindowUrl {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::WindowUrl };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::WindowUrl };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::App(path) => {
|
|
@@ -3013,7 +3013,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for crate::Theme {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::Theme };
|
|
|
+ let prefix = quote! { ::tauri_utils::Theme };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Light => quote! { #prefix::Light },
|
|
@@ -3024,7 +3024,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for crate::TitleBarStyle {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::TitleBarStyle };
|
|
|
+ let prefix = quote! { ::tauri_utils::TitleBarStyle };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Visible => quote! { #prefix::Visible },
|
|
@@ -3108,7 +3108,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for PatternKind {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::PatternKind };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::PatternKind };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Brownfield => quote! { #prefix::Brownfield },
|
|
@@ -3125,7 +3125,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for WebviewInstallMode {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::WebviewInstallMode };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::WebviewInstallMode };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Skip => quote! { #prefix::Skip },
|
|
@@ -3156,7 +3156,7 @@ mod build {
|
|
|
} else {
|
|
|
self.webview_install_mode.clone()
|
|
|
};
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::WindowsConfig {
|
|
|
+ tokens.append_all(quote! { ::tauri_utils::config::WindowsConfig {
|
|
|
webview_install_mode: #webview_install_mode,
|
|
|
..Default::default()
|
|
|
}})
|
|
@@ -3209,7 +3209,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for AppUrl {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::AppUrl };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::AppUrl };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Url(url) => {
|
|
@@ -3251,7 +3251,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for WindowsUpdateInstallMode {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::WindowsUpdateInstallMode };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::WindowsUpdateInstallMode };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::BasicUi => quote! { #prefix::BasicUi },
|
|
@@ -3280,7 +3280,7 @@ mod build {
|
|
|
.map(|list| {
|
|
|
vec_lit(list, |url| {
|
|
|
let url = url.0.as_str();
|
|
|
- quote! { ::tauri::utils::config::UpdaterEndpoint(#url.parse().unwrap()) }
|
|
|
+ quote! { ::tauri_utils::config::UpdaterEndpoint(#url.parse().unwrap()) }
|
|
|
})
|
|
|
})
|
|
|
.as_ref(),
|
|
@@ -3293,7 +3293,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for CspDirectiveSources {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::CspDirectiveSources };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::CspDirectiveSources };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Inline(sources) => {
|
|
@@ -3310,7 +3310,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for Csp {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::Csp };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::Csp };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Policy(policy) => {
|
|
@@ -3332,7 +3332,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for DisabledCspModificationKind {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::DisabledCspModificationKind };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::DisabledCspModificationKind };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Flag(flag) => {
|
|
@@ -3406,7 +3406,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for FsAllowlistScope {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::FsAllowlistScope };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::FsAllowlistScope };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::AllowedPaths(allow) => {
|
|
@@ -3425,28 +3425,30 @@ mod build {
|
|
|
impl ToTokens for FsAllowlistConfig {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
let scope = &self.scope;
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::FsAllowlistConfig { scope: #scope, ..Default::default() } })
|
|
|
+ tokens.append_all(
|
|
|
+ quote! { ::tauri_utils::config::FsAllowlistConfig { scope: #scope, ..Default::default() } },
|
|
|
+ )
|
|
|
}
|
|
|
}
|
|
|
|
|
|
impl ToTokens for ProtocolAllowlistConfig {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
let asset_scope = &self.asset_scope;
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::ProtocolAllowlistConfig { asset_scope: #asset_scope, ..Default::default() } })
|
|
|
+ tokens.append_all(quote! { ::tauri_utils::config::ProtocolAllowlistConfig { asset_scope: #asset_scope, ..Default::default() } })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
impl ToTokens for HttpAllowlistScope {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
let allowed_urls = vec_lit(&self.0, url_lit);
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::HttpAllowlistScope(#allowed_urls) })
|
|
|
+ tokens.append_all(quote! { ::tauri_utils::config::HttpAllowlistScope(#allowed_urls) })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
impl ToTokens for HttpAllowlistConfig {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
let scope = &self.scope;
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::HttpAllowlistConfig { scope: #scope, ..Default::default() } })
|
|
|
+ tokens.append_all(quote! { ::tauri_utils::config::HttpAllowlistConfig { scope: #scope, ..Default::default() } })
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -3463,7 +3465,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for ShellAllowedArgs {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::ShellAllowedArgs };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::ShellAllowedArgs };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Flag(flag) => quote!(#prefix::Flag(#flag)),
|
|
@@ -3477,7 +3479,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for ShellAllowedArg {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::ShellAllowedArg };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::ShellAllowedArg };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Fixed(fixed) => {
|
|
@@ -3494,7 +3496,7 @@ mod build {
|
|
|
|
|
|
impl ToTokens for ShellAllowlistOpen {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
- let prefix = quote! { ::tauri::utils::config::ShellAllowlistOpen };
|
|
|
+ let prefix = quote! { ::tauri_utils::config::ShellAllowlistOpen };
|
|
|
|
|
|
tokens.append_all(match self {
|
|
|
Self::Flag(flag) => quote!(#prefix::Flag(#flag)),
|
|
@@ -3506,14 +3508,14 @@ mod build {
|
|
|
impl ToTokens for ShellAllowlistScope {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
let allowed_commands = vec_lit(&self.0, identity);
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::ShellAllowlistScope(#allowed_commands) })
|
|
|
+ tokens.append_all(quote! { ::tauri_utils::config::ShellAllowlistScope(#allowed_commands) })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
impl ToTokens for ShellAllowlistConfig {
|
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
|
let scope = &self.scope;
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::ShellAllowlistConfig { scope: #scope, ..Default::default() } })
|
|
|
+ tokens.append_all(quote! { ::tauri_utils::config::ShellAllowlistConfig { scope: #scope, ..Default::default() } })
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -3524,7 +3526,7 @@ mod build {
|
|
|
let http = &self.http;
|
|
|
let shell = &self.shell;
|
|
|
tokens.append_all(
|
|
|
- quote! { ::tauri::utils::config::AllowlistConfig { fs: #fs, protocol: #protocol, http: #http, shell: #shell, ..Default::default() } },
|
|
|
+ quote! { ::tauri_utils::config::AllowlistConfig { fs: #fs, protocol: #protocol, http: #http, shell: #shell, ..Default::default() } },
|
|
|
)
|
|
|
}
|
|
|
}
|
|
@@ -3563,7 +3565,7 @@ mod build {
|
|
|
str_lit,
|
|
|
json_value_lit,
|
|
|
);
|
|
|
- tokens.append_all(quote! { ::tauri::utils::config::PluginConfig(#config) })
|
|
|
+ tokens.append_all(quote! { ::tauri_utils::config::PluginConfig(#config) })
|
|
|
}
|
|
|
}
|
|
|
|