Crate gix_archive

Source
Expand description

The implementation of creating an archive from a worktree stream, similar to git archive.

§Deviation

This implementation is early and just does the basics. Git does more to support more context when filtering and to keep more information about entries in the various archive formats. tar is implemented in a very basic fashion only.

§Feature Flags

All features are related to which container formats are available.

  • tar (enabled by default) — Enable the tar archive format. It has support for all information, except for object ids.
  • tar_gz (enabled by default) — Enable the tar.gz archive format.
  • zip (enabled by default) — Enable the zip archive format.

Structs§

Options
Options for configuring write_stream().

Enums§

Error
The error returned by write_stream().
Format
The supported container formats for use in write_stream().

Functions§

write_stream
Write all stream entries in stream as provided by next_entry(stream) to out configured according to opts which also includes the streaming format.
write_stream_seek
Like write_stream(), but requires std::io::Seek for out.