tauri-plugin-devtools-app 3.0.0-alpha.1

Connect with the Devtools for Tauri application
Documentation
use tauri::Runtime;

/// Builder for the no-op mobile plugin (same API as desktop; [`custom_scheme_url`](Builder::custom_scheme_url) is ignored).
#[derive(Default)]
pub struct Builder;

impl Builder {
    #[must_use]
    pub fn new() -> Self {
        Self
    }

    #[must_use]
    pub fn custom_scheme_url<F>(self, _f: F) -> Self
    where
        F: Fn(&str) -> String + Send + Sync + 'static,
    {
        self
    }

    /// no-op plugin (same as [`init`]).
    #[must_use]
    pub fn build<R: Runtime>(self) -> tauri::plugin::TauriPlugin<R> {
        tauri::plugin::Builder::new("devtools-app").build()
    }
}

/// no-op
#[must_use]
pub fn init<R: Runtime>() -> tauri::plugin::TauriPlugin<R> {
    Builder::new().build()
}