(
runtime: &TokioRuntime,
engine: &Engine,
module_cache: &Arc<SharedCache>,
runtime_root: &Path,
)
| 2533 | } |
| 2534 | |
| 2535 | fn preload_runtime_side_modules( |
| 2536 | runtime: &TokioRuntime, |
| 2537 | engine: &Engine, |
| 2538 | module_cache: &Arc<SharedCache>, |
| 2539 | runtime_root: &Path, |
| 2540 | ) -> Result<()> { |
| 2541 | let _phase = timing::phase("wasix.seed_runtime_side_modules"); |
| 2542 | let lib_dir = runtime_root.join("lib/postgresql"); |
| 2543 | for (file_name, artifact_name) in RUNTIME_SIDE_MODULES { |
| 2544 | let library = lib_dir.join(file_name); |
| 2545 | ensure!( |
| 2546 | library.exists(), |
| 2547 | "runtime support module '{}' is not installed at {}", |
| 2548 | file_name, |
| 2549 | library.display() |
| 2550 | ); |
| 2551 | |
| 2552 | seed_side_module_cache( |
| 2553 | runtime, |
| 2554 | engine, |
| 2555 | module_cache, |
| 2556 | &library, |
| 2557 | artifact_name, |
| 2558 | &format!("runtime support module '{file_name}'"), |
| 2559 | )?; |
| 2560 | } |
| 2561 | Ok(()) |
| 2562 | } |
| 2563 | |
| 2564 | #[cfg(feature = "extensions")] |
| 2565 | fn preload_installed_extension_side_modules( |
no test coverage detected