Skip to main content

Crate bdinfo_rs_gui

Crate bdinfo_rs_gui 

Source
Expand description

bdinfo-rs desktop GUI — the library half.

Holds the pure logic — the argv surface and attended-session evidence (args), the playlist view-model (model), the master-detail pane view-models (panes), the selection model (selection), the live-progress model (progress), the mid-scan measured cells (live), the flow state machine (flow), the copy-path helpers (paths), the clipboard sanitizer (clipboard), the column-weight math (columns), the persistent configuration (settings), the best-effort diagnostics log (diagnostics), the visual identity (theme), window-icon rendering (icon) with its Windows .res packer (winres, shared with build.rs), and the scan seam (scan) — so the golden-tie + unit tests link them directly, and the bdinfo-rs-gui binary is the thin iced shell over this surface: it translates messages to calls here and results to widgets, holding no business logic of its own. The one impure thing the shell does is spawn the measured-scan worker thread and forward its progress over a channel.

This crate is an INDEPENDENT workspace (see Cargo.toml) — the large iced/wgpu/winit tree stays out of the root gate — but it STAYS inside forbid(unsafe_code): a native iced app needs no unsafe in our own code.

Modules§

args
The window binary’s unattended-launch contract: the argv surface and the attended-session evidence.
clipboard
Clipboard text sanitizing.
columns
The resizable-column weight math.
diagnostics
Best-effort diagnostics: the per-launch log file, the panic hook, and the tolerated-error helper.
flow
The app’s flow state machine.
icon
The app mark, rendered to RGBA pixels for the window icon.
live
The measured cells a scan in flight ticks into the grids.
model
The pure playlist view-model.
panes
The master-detail pane view-models.
paths
The copy-path helpers behind the Ctrl+C shortcut.
progress
The pure live-progress model.
scan
The scan seam — a picked folder or .iso → the structural playlist list and, after a selection, the measured report.
settings
The persistent GUI configuration.
theme
The “Projection Booth” visual identity — the one place every colour the GUI draws is named and defined.
winres
Windows resources — icon, version info, .ico — built byte-by-byte in pure Rust.