pub fn write_directory(root: &Path) -> Result<WriteArtifact, WriteError>Expand description
Walk a directory tree and produce a valid .lim manifest artifact
with inlined metadata. Files at or below INLINE_THRESHOLD bytes
are stored inline; larger files are packed into a single slab as
content-addressed drops.
File contents (read, FastCDC chunk, BLAKE3 hash, LZ4 compress) are
processed in parallel across CPU cores via rayon. The directory
tree walk and slab assembly remain sequential so the output is
deterministic.
§Errors
Returns WriteError::Io for filesystem errors.