preen-core

Crates.iopreen-core
lib.rspreen-core
version0.1.0
created_at2026-01-25 07:25:21.362724+00
updated_at2026-01-25 07:25:21.362724+00
descriptionCore logic and data models for the Preen system cleaner and optimizer.
homepage
repositoryhttps://github.com/Preen-rs/preen.git
max_upload_size
id2068328
size2,734
Daniel Niazmand (madebydaniz)

documentation

README

preen-core

This crate contains the core business logic and domain models for the Preen system cleaner and optimizer.

It is designed to be completely platform-agnostic and UI-agnostic, adhering to the principles of the Hexagonal Architecture.

Key Components

  • Domain Models: Defines the data structures used throughout the application (e.g., ScanResult, CleanableItem, SystemStats).
  • Ports: Defines the necessary traits (FileSystemPort, SystemMonitorPort) that must be implemented by the preen-os adapter to interact with the operating system.
  • Application Services: Contains the use-case logic (e.g., CleanerService, ScannerService).
  • Messaging Protocol: Defines the Command (UI -> Core) and Event (Core -> UI) enums for asynchronous communication.

Usage

This is a library crate intended to be used by the preen-os, preen-tui, and preen-gui crates within the main Preen workspace.

[dependencies]
preen-core = { path = "../preen-core" }
Commit count: 0

cargo fmt