Skip to main content

get_platform_vfs

Function get_platform_vfs 

Source
pub fn get_platform_vfs() -> Box<dyn Vfs + Send + Sync>
Expand description

Get the platform-default VFS instance.

  • Linux with io-uring feature: Tries UringVfs first for kernel-async I/O, falls back to NativeVfs if io_uring is unavailable (old kernel, container).
  • Other native: Returns NativeVfs (tokio::fs)
  • WASM: Returns WorkerOpfsVfs backed by a Web Worker