diff --git a/core/tauri-utils/src/config.rs b/core/tauri-utils/src/config.rs index 6018ea888..f7bf3db43 100644 --- a/core/tauri-utils/src/config.rs +++ b/core/tauri-utils/src/config.rs @@ -1446,23 +1446,6 @@ impl Default for DisabledCspModificationKind { } } -/// External command access definition. -#[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] -#[cfg_attr(feature = "schema", derive(JsonSchema))] -#[serde(rename_all = "camelCase", deny_unknown_fields)] -pub struct RemoteDomainAccessScope { - /// The URL scheme to allow. By default, all schemas are allowed. - pub scheme: Option, - /// The domain to allow. - pub domain: String, - /// The list of window labels this scope applies to. - pub windows: Vec, - /// The list of plugins that are allowed in this scope. - /// The names should be without the `tauri-plugin-` prefix, for example `"store"` for `tauri-plugin-store`. - #[serde(default)] - pub plugins: Vec, -} - /// Protocol scope definition. /// It is a list of glob patterns that restrict the API access from the webview. /// @@ -2472,24 +2455,6 @@ mod build { } } - impl ToTokens for RemoteDomainAccessScope { - fn to_tokens(&self, tokens: &mut TokenStream) { - let scheme = opt_str_lit(self.scheme.as_ref()); - let domain = str_lit(&self.domain); - let windows = vec_lit(&self.windows, str_lit); - let plugins = vec_lit(&self.plugins, str_lit); - - literal_struct!( - tokens, - ::tauri::utils::config::RemoteDomainAccessScope, - scheme, - domain, - windows, - plugins - ); - } - } - impl ToTokens for CapabilityEntry { fn to_tokens(&self, tokens: &mut TokenStream) { let prefix = quote! { ::tauri::utils::config::CapabilityEntry };