Skip to main content

build

Function build 

Source
pub fn build(opts: &BundleOptions) -> Result<Bundle, String>
Expand description

Build a bundle. Errors are user-facing (bad path, bad glob).

Sources: every file is read through the rooted admitted reader (collect), so ranking, signatures and file bodies are derived from admitted text only. The document is NOT a delivery of exactly its sources: it also carries the task text, the directory tree, the summary and knowledge facts, it reads more files than it renders, and it can read more than one source set can name (archive::authority::MAX_SOURCES). The call’s source capture is therefore marked incomplete — the candidate’s mark for a mixed output — and no lineage is recorded for the result.