pub struct PackOptions<'a> {
pub zip_path: &'a str,
pub html_filename: &'a str,
pub html: &'a str,
pub log_filename: Option<&'a str>,
pub log: &'a str,
pub status: &'a str,
pub resource_dir: Option<&'a Path>,
pub telemetry_json: Option<&'a str>,
pub source_date_epoch: Option<u64>,
}Expand description
Options for pack_archive.
Fields§
§zip_path: &'a strDestination zip path.
html_filename: &'a strName to use for the HTML entry inside the zip (e.g. paper.html).
Conventionally <stem>.html where stem is the source TeX name.
html: &'a strPost-processed HTML content.
log_filename: Option<&'a str>Name for the log entry; pass None to skip writing a log entry.
log: &'a strLog content. Skipped if empty even when log_filename is set.
status: &'a strSingle-line status string. Always written as status.
resource_dir: Option<&'a Path>Resource staging directory (typically a TempDir). Every
non-.html file under it is bundled, preserving subdirectories.
Pass None to skip resource bundling.
telemetry_json: Option<&'a str>Optional per-job telemetry JSON line. When Some, written as
telemetry.json inside the zip. Used by cortex_worker canvas
runs; benchmark_canvas.sh extracts this member and appends to
<output_dir>/telemetry.jsonl. See docs/performance/TELEMETRY.md.
source_date_epoch: Option<u64>SOURCE_DATE_EPOCH (Unix seconds, UTC). When Some, every zip
member’s last-modified time is pinned to it for reproducible
archives — Perl Pack/Zip.pm L113-115
(setLastModFileDateTimeFromUnix). None lets the zip crate use
its default write timestamp.