Skip to main content

Crate installrs

Crate installrs 

Source

Modules§

guigui
Optional native wizard GUI and dialog helpers.

Macros§

source
Produce a Source from a literal path, hashed at compile time.

Structs§

Component
An optional feature the user can select or deselect at install time.
DirChild
A named child inside an EmbeddedEntry::Dir tree.
DirOp
FileOp
Installer
MkdirOp
RemoveOp
Source
Compile-time reference to an embedded file or directory.
UninstallerOp

Enums§

DirChildKind
The payload of a DirChild — either file data or a nested directory.
EmbeddedEntry
A top-level embedded entry baked into the installer binary at compile time.
ErrorAction
Decision returned from an on-error handler inside a directory install.
OptionKind
Declared shape of a user-defined command-line option. Register via crate::Installer::option; read parsed results via crate::Installer::get_option.
OptionValue
Parsed value of a user-defined option, stored per-option after crate::Installer::process_commandline.
OverwriteMode
What to do when a destination file already exists.

Traits§

FromOptionValue
Types that can be pulled out of an OptionValue via crate::Installer::get_option. Implemented for bool, String, i64, i32, u64, u32.
ProgressSink
Sink for progress, status, and log events emitted by installer operations.

Functions§

source_path_hash_const
Compile-time FNV-1a 64-bit hash of a path string (backslashes normalized to forward slashes).
verify_payload
Verify the compressed-payload SHA-256 emitted by the build tool. blobs is a flat list of the unique embedded byte slices (one per deduplicated storage file, in D_* declaration order); uninstaller_data is the embedded uninstaller (empty slice for an uninstaller binary). Call at process start — the generated main() invokes it before anything else.

Type Aliases§

DirErrorHandler
Per-file error handler for directory installs.
DirFilter
Filter closure for directory installs. Receives the relative path within the directory (e.g. "bin/app.exe") and returns true to include the file.