Skip to main content

Module embedded

Module embedded 

Source
Expand description

Embedded file sync: hash-based diff and install for files shipped inside the Joy binary.

Structs§

EmbeddedFile
An embedded file that ships with the Joy binary.
SyncAction
Result of a sync operation for one file.

Enums§

FileStatus
Status of an installed file compared to the embedded version.

Functions§

all_up_to_date
Check if all files are up to date (no outdated or missing files).
diff_files
Compare installed files against embedded versions. Returns a list of (target_path, status) for files that are not up to date.
sync_files
Sync embedded files to disk. Only writes files that are outdated or missing. Returns a list of actions taken.