Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Crate appimagetool

Crate appimagetool 

Source
Expand description

Library backing the appimagetool CLI. Builds AppImages from an AppDir: resolves a uruntime, patches its ELF sections, builds a DWARFS image, and emits the final AppImage plus optional zsync control file.

Most callers want appimage::build with a config::Config.

Modules§

appimage
Top-level AppImage build pipeline: validate the AppDir, resolve runtime and mkdwarfs, optionally run the DWARFS profiling pass, and emit the final .AppImage plus optional .zsync and appinfo.
config
Resolved build configuration plus the CliArgs input that produces it.
desktop
Parse and edit .desktop entry files inside an AppDir.
dwarfs
Build DWARFS filesystem images and run the optional profiling pass that feeds --categorize=hotness into the final image.
elf
Minimal, panic-resistant ELF section reader/writer used to inspect and patch the embedded uruntime. Only handles ET_EXEC/ET_DYN section headers — enough to find named sections and rewrite their contents in place.
error
Crate-wide error type. All public fallible APIs return Result<T>.
log
Verbosity-gated stderr logger driven by a single global level. Use the [log_debug], [log_info], [log_warn], and [log_error] macros from the crate root rather than calling debug/info/warn/error directly when you want lazy formatting.
uruntime
Resolve the uruntime binary (cache or download) and patch its ELF sections to carry the build’s upd_info, env vars, and mount-mode marker.
util
Shared helpers: HTTP downloads with retry + atomic rename, filename sanitization, ELF magic detection, and per-process tmp paths.

Macros§

log_debug
Format args and emit at debug level (only shown with --verbose).
log_error
Format args and emit at error level (always shown).
log_info
Format args and emit at info level (default; suppressed with --quiet).
log_warn
Format args and emit at warn level (suppressed with -qq).