Skip to content

Building from Source

fzihak edited this page Nov 27, 2026 · 1 revision

Building from source

Prerequisites

Tool Version Notes
Windows 10 or 11, 64-bit The app targets Windows.
Rust stable, 1.85 or newer rustup component add clippy rustfmt
Visual Studio Build Tools 2022 Workload: Desktop development with C++
Node.js 20 LTS or newer
pnpm 9 or newer npm install -g pnpm

Run the app

git clone https://github.com/fzihak/FreeMyDisk.git
cd FreeMyDisk
pnpm install
pnpm tauri dev

The first build compiles the Rust workspace and takes a few minutes. After that, UI changes appear at once and Rust changes rebuild in seconds.

Everyday commands

Task Command
Run the app pnpm tauri dev
Rust tests cargo test --workspace
Rust lint (must be clean) cargo clippy --workspace --all-targets -- -D warnings
Rust format cargo fmt --all
UI tests pnpm test
UI type check npx tsc --noEmit
Try the CLI cargo run -p freemydisk-cli -- scan --category browser
Build the installer pnpm build:bundle

Project layout

FreeMyDisk/
├─ src/                             React 19 + TypeScript UI
│  ├─ pages/                        One file per screen
│  ├─ components/                   Shared UI kit
│  ├─ stores/                       Zustand stores
│  └─ i18n/                         Translations
├─ src-tauri/
│  ├─ src/lib.rs                    Tauri commands (UI ↔ engine boundary)
│  ├─ crates/freemydisk-core/       The engine: rules, planner, disposal, journal, scanners
│  │  └─ rules/                     Built-in cleanup rules (TOML)
│  ├─ crates/freemydisk-platform/   Windows APIs: Recycle Bin, processes, registry
│  ├─ crates/freemydisk-cli/        The command-line tool
│  └─ helpers/freemydisk-elevated/  Allow-listed admin helper (runs behind UAC)
└─ docs/                            Media and reports

Architecture

Architecture: React UI and Tauri host on top of the Rust core engine, CLI, platform layer and UAC helper

Layer Tech
Engine Rust 2021 · rayon · BLAKE3 · rusqlite (WAL) · Win32 APIs
App Tauri 2 · React 19 · TypeScript · Tailwind CSS 4 · Zustand
Quality cargo clippy -D warnings · Rust integration tests · Vitest · CI on every pull request

Contributing

Read CONTRIBUTING.md before you open a pull request. Pay special attention to the safety rules, which every change must keep. Commits use Conventional Commits and need a DCO sign-off (git commit -s).

Clone this wiki locally