pytauri_core/plugins/
mod.rs

1#[cfg(feature = "plugin-autostart")]
2mod autostart;
3#[cfg(feature = "plugin-clipboard-manager")]
4mod clipboard_manager;
5#[cfg(feature = "plugin-deep-link")]
6mod deep_link;
7#[cfg(feature = "plugin-dialog")]
8mod dialog;
9#[cfg(feature = "plugin-fs")]
10mod fs;
11#[cfg(feature = "plugin-global-shortcut")]
12mod global_shortcut;
13#[cfg(feature = "plugin-http")]
14mod http;
15#[cfg(feature = "plugin-notification")]
16mod notification;
17#[cfg(feature = "plugin-opener")]
18mod opener;
19#[cfg(feature = "plugin-os")]
20mod os;
21#[cfg(feature = "plugin-persisted-scope")]
22mod persisted_scope;
23#[cfg(feature = "plugin-positioner")]
24mod positioner;
25#[cfg(feature = "plugin-process")]
26mod process;
27#[cfg(feature = "plugin-shell")]
28mod shell;
29#[cfg(feature = "plugin-single-instance")]
30mod single_instance;
31#[cfg(feature = "plugin-updater")]
32mod updater;
33#[cfg(feature = "plugin-upload")]
34mod upload;
35#[cfg(feature = "plugin-websocket")]
36mod websocket;
37#[cfg(feature = "plugin-window-state")]
38mod window_state;
39
40use pyo3::prelude::*;
41
42/// See also: [tauri-apps/plugins-workspace](https://github.com/tauri-apps/plugins-workspace)
43///
44/// You can access this module in Python via `pytuari.EXT_MOD.pytauri_plugins`.
45#[pymodule(submodule, gil_used = false)]
46pub mod pytauri_plugins {
47    #[allow(unused_imports)] // if none of pymodule exported
48    use super::*;
49
50    /// Whether the `plugin-notification` feature is enabled.
51    #[pymodule_export]
52    pub const PLUGIN_NOTIFICATION: bool = cfg!(feature = "plugin-notification");
53
54    /// Whether the `plugin-dialog` feature is enabled.
55    #[pymodule_export]
56    pub const PLUGIN_DIALOG: bool = cfg!(feature = "plugin-dialog");
57
58    /// Whether the `plugin-clipboard-manager` feature is enabled.
59    #[pymodule_export]
60    pub const PLUGIN_CLIPBOARD_MANAGER: bool = cfg!(feature = "plugin-clipboard-manager");
61
62    /// Whether the `plugin-fs` feature is enabled.
63    #[pymodule_export]
64    pub const PLUGIN_FS: bool = cfg!(feature = "plugin-fs");
65
66    /// Whether the `plugin-global-shortcut` feature is enabled.
67    #[pymodule_export]
68    pub const PLUGIN_GLOBAL_SHORTCUT: bool = cfg!(feature = "plugin-global-shortcut");
69
70    /// Whether the `plugin-opener` feature is enabled.
71    #[pymodule_export]
72    pub const PLUGIN_OPENER: bool = cfg!(feature = "plugin-opener");
73
74    /// Whether the `plugin-autostart` feature is enabled.
75    #[pymodule_export]
76    pub const PLUGIN_AUTOSTART: bool = cfg!(feature = "plugin-autostart");
77
78    /// Whether the `plugin-deep-link` feature is enabled.
79    #[pymodule_export]
80    pub const PLUGIN_DEEP_LINK: bool = cfg!(feature = "plugin-deep-link");
81
82    /// Whether the `plugin-http` feature is enabled.
83    #[pymodule_export]
84    pub const PLUGIN_HTTP: bool = cfg!(feature = "plugin-http");
85
86    /// Whether the `plugin-os` feature is enabled.
87    #[pymodule_export]
88    pub const PLUGIN_OS: bool = cfg!(feature = "plugin-os");
89
90    /// Whether the `plugin-persisted-scope` feature is enabled.
91    #[pymodule_export]
92    pub const PLUGIN_PERSISTED_SCOPE: bool = cfg!(feature = "plugin-persisted-scope");
93
94    /// Whether the `plugin-positioner` feature is enabled.
95    #[pymodule_export]
96    pub const PLUGIN_POSITIONER: bool = cfg!(feature = "plugin-positioner");
97
98    /// Whether the `plugin-process` feature is enabled.
99    #[pymodule_export]
100    pub const PLUGIN_PROCESS: bool = cfg!(feature = "plugin-process");
101
102    /// Whether the `plugin-shell` feature is enabled.
103    #[pymodule_export]
104    pub const PLUGIN_SHELL: bool = cfg!(feature = "plugin-shell");
105
106    /// Whether the `plugin-single-instance` feature is enabled.
107    #[pymodule_export]
108    pub const PLUGIN_SINGLE_INSTANCE: bool = cfg!(feature = "plugin-single-instance");
109
110    /// Whether the `plugin-updater` feature is enabled.
111    #[pymodule_export]
112    pub const PLUGIN_UPDATER: bool = cfg!(feature = "plugin-updater");
113
114    /// Whether the `plugin-upload` feature is enabled.
115    #[pymodule_export]
116    pub const PLUGIN_UPLOAD: bool = cfg!(feature = "plugin-upload");
117
118    /// Whether the `plugin-websocket` feature is enabled.
119    #[pymodule_export]
120    pub const PLUGIN_WEBSOCKET: bool = cfg!(feature = "plugin-websocket");
121
122    /// Whether the `plugin-window-state` feature is enabled.
123    #[pymodule_export]
124    pub const PLUGIN_WINDOW_STATE: bool = cfg!(feature = "plugin-window-state");
125
126    #[cfg(feature = "plugin-notification")]
127    #[pymodule_export]
128    pub use notification::notification;
129
130    #[cfg(feature = "plugin-dialog")]
131    #[pymodule_export]
132    pub use dialog::dialog;
133
134    #[cfg(feature = "plugin-clipboard-manager")]
135    #[pymodule_export]
136    pub use clipboard_manager::clipboard_manager;
137
138    #[cfg(feature = "plugin-fs")]
139    #[pymodule_export]
140    pub use fs::fs;
141
142    #[cfg(feature = "plugin-global-shortcut")]
143    #[pymodule_export]
144    pub use global_shortcut::global_shortcut;
145
146    #[cfg(feature = "plugin-opener")]
147    #[pymodule_export]
148    pub use opener::opener;
149
150    #[cfg(feature = "plugin-autostart")]
151    #[pymodule_export]
152    pub use autostart::autostart;
153
154    #[cfg(feature = "plugin-deep-link")]
155    #[pymodule_export]
156    pub use deep_link::deep_link;
157
158    #[cfg(feature = "plugin-http")]
159    #[pymodule_export]
160    pub use http::http;
161
162    #[cfg(feature = "plugin-os")]
163    #[pymodule_export]
164    pub use os::os;
165
166    #[cfg(feature = "plugin-persisted-scope")]
167    #[pymodule_export]
168    pub use persisted_scope::persisted_scope;
169
170    #[cfg(feature = "plugin-positioner")]
171    #[pymodule_export]
172    pub use positioner::positioner;
173
174    #[cfg(feature = "plugin-process")]
175    #[pymodule_export]
176    pub use process::process;
177
178    #[cfg(feature = "plugin-shell")]
179    #[pymodule_export]
180    pub use shell::shell;
181
182    #[cfg(feature = "plugin-single-instance")]
183    #[pymodule_export]
184    pub use single_instance::single_instance;
185
186    #[cfg(feature = "plugin-updater")]
187    #[pymodule_export]
188    pub use updater::updater;
189
190    #[cfg(feature = "plugin-upload")]
191    #[pymodule_export]
192    pub use upload::upload;
193
194    #[cfg(feature = "plugin-websocket")]
195    #[pymodule_export]
196    pub use websocket::websocket;
197
198    #[cfg(feature = "plugin-window-state")]
199    #[pymodule_export]
200    pub use window_state::window_state;
201}