compress

Function compress 

Source
pub async fn compress<W: AsyncWrite + AsyncSeek + Unpin>(
    src: impl AsRef<Path>,
    dest: W,
) -> Result<W, Error>
Available on crate feature compress and non-WebAssembly only.
Expand description

Compresses a source file or directory to a destination writer.

ยงArguments

  • src - Path to the source file or directory to compress
  • dest - Writer that implements AsyncWrite + AsyncSeek + Unpin