-
Notifications
You must be signed in to change notification settings - Fork 0
crates csv anonymizer tauri
Douwe de Vries edited this page Jul 1, 2026
·
1 revision
Active contributors: Douwe de Vries
csv-anonymizer-tauri is the Rust workspace member under src-tauri. It owns the Tauri process, command registration, managed desktop state, and Rust adapters around csv-anonymizer-core. It does not own the React UI implementation.
| Path | Role |
|---|---|
src-tauri/Cargo.toml |
Tauri crate metadata, dependencies, build dependency, and custom-protocol feature. |
src-tauri/src/main.rs |
Tauri builder, managed state registration, dialog plugin, generated invoke handler, and command-list test. |
src-tauri/src/commands.rs |
Command module facade and public command exports. |
- The crate package name is
csv-anonymizer-tauri. - It depends on
csv-anonymizer-corethrough a path dependency. -
main.rsregisters managed state for anonymization jobs, Local AI downloads, path access, and settings. -
commands.rsre-exports command handlers from CSV, file, job, Local AI, settings, and shared command modules. - The command list is included from
src-tauri/src/tauri_command_list.rsso command registration stays centralized. - Tauri config and bundling metadata live next to the crate but are separate from Rust crate source.
graph LR
Main[src-tauri/src/main.rs] --> Commands[src-tauri/src/commands.rs]
Main --> State[managed state]
Commands --> Csv[commands/csv.rs]
Commands --> Jobs[commands/job_commands.rs]
Commands --> Files[commands/files.rs]
Commands --> Settings[commands/settings_commands.rs]
Commands --> LocalAI[commands/local_ai_commands.rs]
Csv --> Core[csv-anonymizer-core]
Jobs --> Core
LocalAI --> Core
At startup, tauri::Builder installs managed state, initializes the dialog plugin, builds the invoke handler from tauri_command_list!, and runs the generated Tauri context. Command handlers then adapt frontend requests to core DTOs or desktop operations.
- Tauri command shell documents the command boundary built by this crate.
- Background jobs documents retained job state managed by this crate.
- Settings and path access documents settings and path grant state managed by this crate.
-
Frontend workflow state calls this crate through
frontend/src/tauri.ts. - Release tooling builds this crate through the Tauri CLI.
- Change crate dependencies or features in
src-tauri/Cargo.toml. - Change top-level Tauri setup in
src-tauri/src/main.rs. - Add command modules or exports in
src-tauri/src/commands.rs. - Add command names to
src-tauri/src/tauri_command_list.rswhen exposing new handlers. - Keep React-specific workflow state in
frontend/src, not in this crate.
src-tauri/Cargo.tomlsrc-tauri/src/main.rssrc-tauri/src/commands.rssrc-tauri/src/tauri_command_list.rs