pub fn compress_file(
path: &Path,
config: &EngineConfiguration,
) -> Result<Vec<u8>>Expand description
Compress a file at path using memory-mapped zero-copy I/O (FR-009).
This is the preferred entry point for large file inputs.
Internally uses memmap2::MmapOptions to avoid copying file contents
into a heap buffer before compression.
ยงErrors
CrushError::Ioโ file could not be opened or memory-mapped.CrushError::Cancelledโ cancelled via the progress callback.CrushError::InvalidConfigโ configuration validation failed.