Skip to main content

Crate sim_table_fs

Crate sim_table_fs 

Source
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§

FindGlobResult
Bounded glob result.
FindGrepResult
Bounded grep result.
FindMatch
One text match returned by FsDir::find_grep.
FsDir
A SIM table backed by a host directory rooted at a canonical path.
FsDirDescriptor
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/FsDir class symbol for the filesystem table.
install_fs_dir_lib
Opens a filesystem table at root and returns it as a runtime table value.