pytauri-core 0.8.0

Core library for PyTauri
Documentation
#[cfg(feature = "plugin-autostart")]
mod autostart;
#[cfg(feature = "plugin-clipboard-manager")]
mod clipboard_manager;
#[cfg(feature = "plugin-deep-link")]
mod deep_link;
#[cfg(feature = "plugin-dialog")]
mod dialog;
#[cfg(feature = "plugin-fs")]
mod fs;
#[cfg(feature = "plugin-global-shortcut")]
mod global_shortcut;
#[cfg(feature = "plugin-http")]
mod http;
#[cfg(feature = "plugin-notification")]
mod notification;
#[cfg(feature = "plugin-opener")]
mod opener;
#[cfg(feature = "plugin-os")]
mod os;
#[cfg(feature = "plugin-persisted-scope")]
mod persisted_scope;
#[cfg(feature = "plugin-positioner")]
mod positioner;
#[cfg(feature = "plugin-process")]
mod process;
#[cfg(feature = "plugin-shell")]
mod shell;
#[cfg(feature = "plugin-single-instance")]
mod single_instance;
#[cfg(feature = "plugin-updater")]
mod updater;
#[cfg(feature = "plugin-upload")]
mod upload;
#[cfg(feature = "plugin-websocket")]
mod websocket;
#[cfg(feature = "plugin-window-state")]
mod window_state;

use pyo3::prelude::*;

/// See also: [tauri-apps/plugins-workspace](https://github.com/tauri-apps/plugins-workspace)
///
/// You can access this module in Python via `pytuari.EXT_MOD.pytauri_plugins`.
#[pymodule(submodule, gil_used = false)]
pub mod pytauri_plugins {
    #[allow(unused_imports)] // if none of pymodule exported
    use super::*;

    /// Whether the `plugin-notification` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_NOTIFICATION: bool = cfg!(feature = "plugin-notification");

    /// Whether the `plugin-dialog` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_DIALOG: bool = cfg!(feature = "plugin-dialog");

    /// Whether the `plugin-clipboard-manager` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_CLIPBOARD_MANAGER: bool = cfg!(feature = "plugin-clipboard-manager");

    /// Whether the `plugin-fs` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_FS: bool = cfg!(feature = "plugin-fs");

    /// Whether the `plugin-global-shortcut` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_GLOBAL_SHORTCUT: bool = cfg!(feature = "plugin-global-shortcut");

    /// Whether the `plugin-opener` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_OPENER: bool = cfg!(feature = "plugin-opener");

    /// Whether the `plugin-autostart` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_AUTOSTART: bool = cfg!(feature = "plugin-autostart");

    /// Whether the `plugin-deep-link` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_DEEP_LINK: bool = cfg!(feature = "plugin-deep-link");

    /// Whether the `plugin-http` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_HTTP: bool = cfg!(feature = "plugin-http");

    /// Whether the `plugin-os` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_OS: bool = cfg!(feature = "plugin-os");

    /// Whether the `plugin-persisted-scope` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_PERSISTED_SCOPE: bool = cfg!(feature = "plugin-persisted-scope");

    /// Whether the `plugin-positioner` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_POSITIONER: bool = cfg!(feature = "plugin-positioner");

    /// Whether the `plugin-process` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_PROCESS: bool = cfg!(feature = "plugin-process");

    /// Whether the `plugin-shell` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_SHELL: bool = cfg!(feature = "plugin-shell");

    /// Whether the `plugin-single-instance` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_SINGLE_INSTANCE: bool = cfg!(feature = "plugin-single-instance");

    /// Whether the `plugin-updater` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_UPDATER: bool = cfg!(feature = "plugin-updater");

    /// Whether the `plugin-upload` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_UPLOAD: bool = cfg!(feature = "plugin-upload");

    /// Whether the `plugin-websocket` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_WEBSOCKET: bool = cfg!(feature = "plugin-websocket");

    /// Whether the `plugin-window-state` feature is enabled.
    #[pymodule_export]
    pub const PLUGIN_WINDOW_STATE: bool = cfg!(feature = "plugin-window-state");

    #[cfg(feature = "plugin-notification")]
    #[pymodule_export]
    pub use notification::notification;

    #[cfg(feature = "plugin-dialog")]
    #[pymodule_export]
    pub use dialog::dialog;

    #[cfg(feature = "plugin-clipboard-manager")]
    #[pymodule_export]
    pub use clipboard_manager::clipboard_manager;

    #[cfg(feature = "plugin-fs")]
    #[pymodule_export]
    pub use fs::fs;

    #[cfg(feature = "plugin-global-shortcut")]
    #[pymodule_export]
    pub use global_shortcut::global_shortcut;

    #[cfg(feature = "plugin-opener")]
    #[pymodule_export]
    pub use opener::opener;

    #[cfg(feature = "plugin-autostart")]
    #[pymodule_export]
    pub use autostart::autostart;

    #[cfg(feature = "plugin-deep-link")]
    #[pymodule_export]
    pub use deep_link::deep_link;

    #[cfg(feature = "plugin-http")]
    #[pymodule_export]
    pub use http::http;

    #[cfg(feature = "plugin-os")]
    #[pymodule_export]
    pub use os::os;

    #[cfg(feature = "plugin-persisted-scope")]
    #[pymodule_export]
    pub use persisted_scope::persisted_scope;

    #[cfg(feature = "plugin-positioner")]
    #[pymodule_export]
    pub use positioner::positioner;

    #[cfg(feature = "plugin-process")]
    #[pymodule_export]
    pub use process::process;

    #[cfg(feature = "plugin-shell")]
    #[pymodule_export]
    pub use shell::shell;

    #[cfg(feature = "plugin-single-instance")]
    #[pymodule_export]
    pub use single_instance::single_instance;

    #[cfg(feature = "plugin-updater")]
    #[pymodule_export]
    pub use updater::updater;

    #[cfg(feature = "plugin-upload")]
    #[pymodule_export]
    pub use upload::upload;

    #[cfg(feature = "plugin-websocket")]
    #[pymodule_export]
    pub use websocket::websocket;

    #[cfg(feature = "plugin-window-state")]
    #[pymodule_export]
    pub use window_state::window_state;
}