Get the global plugin system, creating a default one if not initialized.
()
| 294 | |
| 295 | /// Get the global plugin system, creating a default one if not initialized. |
| 296 | pub fn global() -> Arc<PluginSystem> { |
| 297 | GLOBAL_PLUGIN_SYSTEM |
| 298 | .get_or_init(|| Arc::new(PluginSystem::new())) |
| 299 | .clone() |
| 300 | } |
| 301 | |
| 302 | /// Convenience: trigger a hook event on the global plugin system. |
| 303 | /// Errors from individual hooks are logged but do not propagate. |
no test coverage detected