pub async fn precompile_plugins<PR: PluginRepositoryTrait>(
plugin_repository: &PR,
pool_manager: &PoolManager,
) -> Result<usize>Expand description
Precompile all configured plugins.
This function loads all plugins from the repository and triggers precompilation via the worker pool. Compiled code is cached in the pool for fast execution.
§Arguments
plugin_repository- Reference to the plugin repositorypool_manager- The pool manager to use for compilation
§Returns
Ok(usize)- Number of plugins successfully precompiledErr- If precompilation fails critically