Skip to content

Architecture

Andrew Paolucci edited this page Nov 26, 2026 · 2 revisions

Workspace Architecture (fs2rust)

fs2rust is a modular 9-crate Cargo workspace (edition = "2024", resolver 2) layered on guap-kit.

flowchart LR
    CORE["fs2rust-core<br/>Provider/Action Registry, Policy Gates, Offline Routing"]
    SEARCH["fs2rust-search<br/>6 Search, Hash, Folder, Time & Shortcut Tools"]
    NTFS["fs2rust-ntfs<br/>11 Drives, Counters, ETW, SMART, ADS, Links, Props & USN Tools"]
    DATA["fs2rust-data<br/>7 CSV, Diff, GuapQuery, EXIF, Codegen, HTML & Contacts Tools"]
    REP["fs2rust-report<br/>guap-export Bundle & Merkle Custody"]
    MCP["fs2rust-mcp<br/>32 MCP Endpoints (24 ro + 8 mut)"]
    CLI["fs2rust-cli<br/>CLI + Policy Dispatcher + GUI Launcher"]
    WIN32["fs2rust-win32<br/>Native WinSafe Virtual List GUI"]
    ICED["fs2rust-iced<br/>Cross-Platform Iced 0.14 GUI"]

    SEARCH --> CORE
    NTFS --> CORE
    DATA --> CORE
    REP --> CORE
    MCP --> CORE
    CLI --> CORE
    CLI --> SEARCH
    CLI --> NTFS
    CLI --> DATA
    CLI --> REP
    CLI --> MCP
    WIN32 --> CORE
    WIN32 --> REP
    ICED --> CORE
    ICED --> REP
Loading

Memory-Safety Boundary

  • #![forbid(unsafe_code)]: fs2rust-search, fs2rust-data, fs2rust-report, fs2rust-mcp (lib.rs & main.rs), fs2rust-cli (lib.rs & main.rs), and fs2rust-iced (main.rs).
  • Audited Windows Storage FFI: fs2rust-core, fs2rust-ntfs (Win32 DeviceIoControl / FindFirstStreamW / IPropertyStore / ETW), and fs2rust-win32 keep unsafe FFI bounded alongside pure-Rust offline parsers ($UsnJrnl:$J, $MFT ADS, ATA SMART / NVMe binary decoders).

Clone this wiki locally