Module history

Module history 

Source

StructsΒ§

AudioHistory
AudioSample
AudioScanDiff
AudioScanSnapshot
AudioScanSummary
DawHistory
DawProject
DawScanDiff
DawScanSnapshot
DawScanSummary
KvrCacheEntry
KvrCacheUpdateEntry
MidiFile
MidiScanDiff
MidiScanSnapshot
MidiScanSummary
PdfFile
PdfScanDiff
PdfScanSnapshot
PdfScanSummary
PresetFile
PresetHistory
PresetScanDiff
PresetScanSnapshot
PresetScanSummary
ScanDiff
ScanHistory
ScanSnapshot
ScanSummary
VersionChangedPlugin

ConstantsΒ§

APP_DATA_IDENTIFIER πŸ”’
Bundle / data subdir β€” must match identifier in tauri.conf.json and Tauri app_data_dir().
PREF_CACHE_TTL_MS πŸ”’
SECTION_MAP πŸ”’

StaticsΒ§

PREF_CACHE πŸ”’
Avoid re-reading preferences.toml on every hot path (e.g. get_process_stats once per second). Cache entries are keyed by the resolved preferences path so parallel tests (each with a thread-local temp data dir) and the main app never share a PrefsMap across different files.
PREF_RMW_LOCK πŸ”’
Serializes read-modify-write preference updates so concurrent prefs_set / prefs_remove calls (e.g. color scheme + removing customSchemeVars) cannot clobber each other on disk.

FunctionsΒ§

app_data_dir_from_home πŸ”’
When dirs::data_dir() is unavailable, resolve under the home directory β€” never use the process working directory. A cwd-based path changes with how the app is launched (Finder vs Terminal vs IDE), so prefs and DB would appear to β€œreset” every run.
audio_history_file πŸ”’
build_audio_snapshot
Build an AudioScanSnapshot without file I/O (for SQLite path).
build_daw_snapshot
build_midi_snapshot
build_pdf_snapshot
build_plugin_snapshot
Build a ScanSnapshot without file I/O (for SQLite path).
build_preset_snapshot
clear_audio_history
clear_daw_history
clear_history
clear_preset_history
compute_audio_diff
Compute diff between two audio snapshots (no file I/O).
compute_daw_diff
compute_midi_diff
compute_pdf_diff
compute_plugin_diff
Compute diff between two plugin snapshots (no file I/O).
compute_preset_diff
daw_history_file πŸ”’
default_config πŸ”’
delete_audio_scan
delete_daw_scan
delete_preset_scan
delete_scan
diff_audio_scans
diff_daw_scans
diff_preset_scans
diff_scans
ensure_data_dir
Creates get_data_dir() if needed; safe to call before writing files there.
flat_to_toml πŸ”’
Convert a flat PrefsMap into sectioned TOML string.
gen_id
get_audio_scan_detail
get_audio_scans
get_data_dir
get_daw_scan_detail
get_daw_scans
get_latest_audio_scan
get_latest_daw_scan
get_latest_preset_scan
get_latest_scan
get_preference
get_preferences_path
get_preset_scan_detail
get_preset_scans
get_scan_detail
get_scans
history_file πŸ”’
invalidate_prefs_cache πŸ”’
json_to_toml_value πŸ”’
kvr_cache_file πŸ”’
legacy_preferences_file πŸ”’
load_audio_history πŸ”’
load_daw_history πŸ”’
load_history πŸ”’
load_kvr_cache
load_preferences
load_preferences_from_disk πŸ”’
load_preset_history πŸ”’
merge_prefs πŸ”’
migrate_json_string πŸ”’
If a value is a string that looks like JSON array/object, parse it to native. Handles migration from old format where structured data was JSON-stringified.
now_iso
preferences_file πŸ”’
prefs_cache_now_ms πŸ”’
preset_history_file πŸ”’
radix_string
remove_preference
save_audio_history πŸ”’
save_audio_scan
save_daw_history πŸ”’
save_daw_scan
save_history πŸ”’
save_kvr_cache πŸ”’
save_preferences
save_preset_history πŸ”’
save_preset_scan
save_scan
set_preference
toml_key_to_flat πŸ”’
Build a reverse lookup: (section, toml_key) β†’ flat_key
toml_to_flat πŸ”’
Parse a TOML string into a flat PrefsMap. Top-level sections become either a nested JSON value (for β€œwindow”) or their inner keys are promoted to flat top-level keys using SECTION_MAP.
toml_value_to_json πŸ”’
update_kvr_cache

Type AliasesΒ§

PrefsMap