Expand description
Filesystem-backed table store for SIM.
This crate exposes a host directory as a SIM table: each table key maps to a
file, and nested tables map to subdirectories. Reads are gated by fs/read;
writes, deletes, and directory mutation are gated by fs/write.
Compatibility table.fs.* aliases are accepted by the gates. Values are encoded through
the configured codec. With the optional format features enabled, recognized
extensions (for example .mid, .music, .tone, .scl, .ly) round-trip
through their domain shapes. FsDir::edit patches string leaves with
fs/read and edit, then writes by same-directory temp file and rename.
FsDir::find_grep and FsDir::find_glob search the directory read-only
with fs/read and find.
Re-exports§
pub use capabilities::table_fs_capability;pub use capabilities::table_fs_edit_capability;pub use capabilities::table_fs_find_capability;pub use capabilities::table_fs_mkdir_capability;pub use capabilities::table_fs_read_capability;pub use capabilities::table_fs_rmdir_capability;pub use capabilities::table_fs_write_capability;
Modules§
- capabilities
- Capability names used by filesystem-backed tables.
Structs§
- Find
Glob Result - Bounded glob result.
- Find
Grep Result - Bounded grep result.
- Find
Match - One text match returned by
FsDir::find_grep. - FsDir
- A SIM table backed by a host directory rooted at a canonical path.
- FsDir
Descriptor - Citizen descriptor identifying a filesystem-backed table by its root path.
Statics§
- RECIPES
- Cookbook recipes for this lib, embedded at build time.
Functions§
- fs_
dir_ class_ symbol - Returns the
table/FsDirclass symbol for the filesystem table. - install_
fs_ dir_ lib - Opens a filesystem table at
rootand returns it as a runtime table value.