Skip to content

Architecture

Andrew Paolucci edited this page Nov 26, 2026 · 1 revision

Workspace Architecture (sys2rust)

sys2rust is a 10-crate Cargo workspace (edition = "2024", resolver 2) layered on guap-kit (guap-table, guap-export, guap-mcp, guap-gui-win32, guap-gui-iced).

flowchart LR
    CORE["sys2rust-core<br/>Provider & Action Traits, Policy Gates, Offline Routing"]
    PROC["sys2rust-proc<br/>13 Process, Thread, Handle, Heap, WCT & ETW Tools"]
    HW["sys2rust-hw<br/>10 Services, Drivers, PnP, Tasks, WMI, SMBIOS/ACPI & Battery Tools"]
    SHELL["sys2rust-shell<br/>19 Startup, Uninstall, MSI/Appx, ShellEx, COM & Privacy Tools"]
    PE["sys2rust-pe<br/>6 Pure-Rust PE32/PE32+/.NET/Resource/Icon/GAC Tools"]
    REP["sys2rust-report<br/>guap-export Bundling & Merkle Custody"]
    MCP["sys2rust-mcp<br/>70 MCP Endpoints (48 ro + 22 mut)"]
    CLI["sys2rust-cli<br/>CLI + Policy Dispatcher + GUI Launcher"]
    WIN32["sys2rust-win32<br/>Native WinSafe Virtual List GUI"]
    ICED["sys2rust-iced<br/>Cross-Platform Iced 0.14 GUI"]

    PROC --> CORE
    HW --> CORE
    SHELL --> CORE
    PE --> CORE
    REP --> CORE
    MCP --> CORE
    CLI --> CORE
    CLI --> PROC
    CLI --> HW
    CLI --> SHELL
    CLI --> PE
    CLI --> REP
    CLI --> MCP
    WIN32 --> CORE
    WIN32 --> REP
    ICED --> CORE
    ICED --> REP
Loading

Memory-Safety Boundary

  • #![forbid(unsafe_code)]: sys2rust-pe (hostile binary PE32/PE32+/.NET/icon parser), sys2rust-report, sys2rust-mcp (lib.rs & main.rs), sys2rust-cli (main.rs), and sys2rust-iced (main.rs).
  • Audited OS Bindings: sys2rust-core, sys2rust-proc, sys2rust-hw, sys2rust-shell, and sys2rust-win32 encapsulate Win32 / ToolHelp / WMI / SetupAPI / TaskScheduler COM FFI cleanly while preserving pure-Rust offline synthetic backends (--offline).

Clone this wiki locally