Modules§
Structs§
- Fs
- Main filesystem structure With std feature: uses DashMap for lock-free concurrent access Without std: uses BTreeMap for single-threaded environments
- FsDescriptor
Wrapper - Wrapper for fs-core file descriptor stored in ResourceTable. Contains the fd and optionally the path for directory descriptors.
- FsDirectory
Entry Stream Wrapper - Wrapper for directory entry stream stored in ResourceTable. Caches the directory listing and tracks iteration position.
- VfsHost
State - Host state that uses fs-core directly for filesystem operations.
Multiple instances can share the same VFS via
Arc<Fs>.
Constants§
Functions§
- add_
to_ linker_ with_ vfs - Add WASI interfaces to linker with custom VFS filesystem implementation.
- convert_
fs_ error - Helper function to convert fs-core error to WASI error code