Expand description
In-memory filesystem implementation shared by every Monaka component.
A single Fs type is exposed in two flavours via the thread-safe
feature flag:
thread-safe(requiresstd): backed byDashMapplusArc<RwLock<Inode>>, used by host-side wasmtime integrations that needSend + Sync.- default: backed by
RefCell<HashMap>orRefCell<BTreeMap>plusRc<RefCell<Inode>>, used by the WASI components.
Both flavours share one &self API, so consumers only need to pick
the feature flag that matches their target.
Modules§
- snapshot
- Snapshot serialization/deserialization for filesystem persistence.
Macros§
Structs§
- Block
Storage - Fs
- Main filesystem structure. See the module-level comment for an overview of the two storage flavours.
- Inode
- Inode structure representing a file or directory
- Metadata
- Monotonic
Counter - A simple monotonic counter for timestamps.
Enums§
- File
Content - File content: either file data or directory entries
- FsError