Skip to main content

materialize

Function materialize 

Source
pub fn materialize(
    specs: &[FunctionSpec],
    site: &str,
    files: &BTreeMap<String, FileEntry>,
    created: u64,
) -> Vec<Function>
Expand description

Materialize desugared specs into stored Functions for a site, resolving each component path to its blob hash via the deploy’s file map (the blob hash is the content-addressed version id). created is the deploy’s activation time. Specs whose component isn’t in the file map are dropped (a validated deploy always has them). This is the derived, read-only view of a site’s functions (FA-1); independently-stored top-level functions come with FA-2.