mtzip

MTZIP (Stand for Multi-Threaded ZIP) is a library for making zip archives utilising all the threads of the machine.

Example usage:

```rs use mtzip::ZipArchive;

// Creating the zipper that holds data and handles compression let zipper = ZipArchive::default();

// Adding a file from filesystem zipper.addfile("input/testtextfile.txt", "testtext_file.txt");

// Adding a file from a byte array zipper.addfilefromslice(b"Hello, world!", "helloworld.txt");

// Adding a directory and a file to it zipper.adddirectory("testdir"); // And adding a file to it zipper.addfile("input/filethatgoestoadir.txt", "testdir/filethatgoestoadir.txt");

// Writing to a file // First, open the file let mut file = File::create("output.zip").unwrap(); // Then, write to it zipper.write(&mut file); // Amount of threads is chosen automatically ```

ZipArchive::write and ZipArchive::compress methods that do not require specifying amoutn of threads and choose it automatically using sysinfo crate are enabled by default feature auto-threading. If you don't need or want this, you can disable default features.