Skip to main content

termesh_filesystem/
lib.rs

1//! Project tree model, file watching, mutations, ignore rules. Phase 02.
2//!
3//! The `FileSystemService` trait here is the workspace's only door to the real
4//! filesystem (ARCHITECTURE.md §7.4). Its shape — synchronous methods, called from a
5//! worker thread rather than the render loop — is fixed by ADR-0005 §3 and is the
6//! template every later service copies.
7#![forbid(unsafe_code)]
8
9pub mod ignore_rules;
10pub mod reader;
11pub mod real;
12pub mod service;
13pub mod tree;
14pub mod watch;
15pub mod worker;
16
17pub use ignore_rules::{matches_exclusion, IgnoreOptions, IgnoreRules};
18pub use reader::DirReader;
19pub use real::RealFileSystem;
20pub use service::{sort_entries, DirEntryInfo, EntryKind, FileSystemService, FsError, FsResult};
21pub use tree::{ChildState, FileTree, Node, Row};
22pub use watch::{Coalescer, RootWatcher};
23pub use worker::FsWorker;