Skip to main content

PackOptions

Struct PackOptions 

Source
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 str

Destination zip path.

§html_filename: &'a str

Name 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 str

Post-processed HTML content.

§log_filename: Option<&'a str>

Name for the log entry; pass None to skip writing a log entry.

§log: &'a str

Log content. Skipped if empty even when log_filename is set.

§status: &'a str

Single-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.

Auto Trait Implementations§

§

impl<'a> Freeze for PackOptions<'a>

§

impl<'a> RefUnwindSafe for PackOptions<'a>

§

impl<'a> Send for PackOptions<'a>

§

impl<'a> Sync for PackOptions<'a>

§

impl<'a> Unpin for PackOptions<'a>

§

impl<'a> UnsafeUnpin for PackOptions<'a>

§

impl<'a> UnwindSafe for PackOptions<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.