sim_table_mount/lib.rs
1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3//! Mounted Table/Dir namespace for SIM storage backends.
4//!
5//! [`MountedDir`] composes a root directory with explicit Table or Dir mount
6//! points. Directory operations route by the longest valid mounted prefix, and
7//! table leaves remain leaves. Each operation delegates to the mounted backend
8//! that owns the selected path, preserving that backend's capability checks,
9//! read-only behavior, errors, and live state.
10
11pub mod capabilities;
12mod mount_dir;
13mod ops;
14mod routing;
15
16pub use capabilities::table_mount_capability;
17pub use mount_dir::{MountInspection, MountKind, MountedDir};
18pub use ops::{
19 install_mount_dir_lib, mount_create_symbol, mount_dir_symbol, mount_inspect_symbol,
20 mount_table_symbol, mount_unmount_symbol,
21};
22
23/// Cookbook recipes for this lib, embedded at build time.
24pub static RECIPES: sim_cookbook::EmbeddedDir =
25 include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
26
27#[cfg(test)]
28mod tests;