pub fn bundle(
inputs: &[FileSpec],
out: &Path,
meta: BTreeMap<String, String>,
created_at: &str,
extra_forbidden: &[String],
) -> Result<Manifest, BundleError>Expand description
Copy the listed files out, filtered, and write the manifest beside them. Action.
Every input is rewritten with only the columns its FileSpec declares,
written under its own file name into out, and hashed. A file not on an
allow-list column is dropped and recorded on the manifest. The manifest
is written as canonical JSON and returned.
created_at is the caller’s wall-clock value; this crate never reads a
clock. extra_forbidden is unioned with this crate’s default forbidden
tokens; a caller may add tokens, never remove them.
§Errors
A BundleError naming the file, column or row that failed, when any
refusal applies. Nothing is written when the call fails.
§Errors
See BundleError.