Skip to main content

Module fs

Module fs 

Source
Expand description

Filesystem adapter trait and implementations.

Fs is the injectable boundary between zenith-session logic and the real operating system. All library code that touches the filesystem receives an &impl Fs (or &dyn Fs) so that tests can substitute MemFs without touching disk.

MemFs is the in-memory test adapter. It lives in lib (not #[cfg(test)]) so that integration tests in later units can import it directly. It is intentionally not feature-gated.

Structs§

MemFs
In-memory filesystem for tests.
OsFs
Real filesystem adapter that delegates to std::fs.

Traits§

Fs
Abstraction over filesystem operations used by zenith-session.