(host_path: &Path)
| 1947 | } |
| 1948 | |
| 1949 | fn host_filesystem(host_path: &Path) -> Result<Arc<dyn virtual_fs::FileSystem + Send + Sync>> { |
| 1950 | let host_fs = SyncHostFileSystem::new(host_path) |
| 1951 | .with_context(|| format!("create host fs rooted at {}", host_path.display()))?; |
| 1952 | Ok(Arc::new(host_fs) as Arc<dyn virtual_fs::FileSystem + Send + Sync>) |
| 1953 | } |
| 1954 | |
| 1955 | fn fs_trace_enabled() -> bool { |
| 1956 | env_flag_enabled("PGLITE_OXIDE_WASIX_FS_TRACE") |
no outgoing calls