Skip to main content

build

Function build 

Source
pub fn build(
    disk: &DiskCache,
    secret: &SecretKey,
    options: &PublishOptions,
    unknown_ok: &dyn Fn(Option<&Effort>) -> bool,
) -> (Vec<u8>, PublishReport)
Expand description

Builds a pack of disk’s exportable entries, each signed with secret.

It selects exactly what publish would export (the same eligibility and serving policy). Entries are written in ascending key order. The report’s published counts the entries in the pack, and failed counts entries left out because they are too large for a record.