Commit graph

2161 commits

Author SHA1 Message Date
Jos van den Oever
93f676fa57 Add two simple tests. 2017-03-14 20:16:51 +01:00
Mathijs van de Nes
da4d8080c5 Bump version 2017-03-06 21:26:11 +01:00
Mathijs van de Nes
75558ea665 Merge branch 'stanmihai4-master' 2017-03-06 21:25:43 +01:00
Mihai STAN
7d85d8fb66 Fix writing to buffers.
Using SeekFrom::End(0) in finish_file for a buffer was movind the position
the the end of the buffer, not the last written byte.
2017-03-06 06:22:42 +02:00
Mathijs van de Nes
1831edbbdd Expose the raw file name of a file
We still do most operations with normal Strings, but a user can now also get the raw bytes.

Resolves #26
2017-02-12 17:18:40 +01:00
Mathijs van de Nes
88445219ec Only allow path::Component::Normal when extracting
Previously, Component::Root and Component::Prefix where still allowed.
This meant some files could be extracted to a location outside the current directory.
Only safe components are Normal and Curdir, but since Curdir does not do anything we filter it aswell.

Resolves #27
2017-02-12 17:05:21 +01:00
Mathijs van de Nes
089f7a89e7 Update the README 2016-10-30 09:24:15 +01:00
Mathijs van de Nes
d2d19f6539 Update the write API
This change adds a FileOptions struct. This struct can be filled using a builder pattern
to set the options for a file or folder.

With this change, we also introduce the option to set the (unix) permissions of a file or folder.
2016-10-30 09:09:50 +01:00
Mathijs van de Nes
82315c9511 Add comments to write.rs
Clarify which field means what when writing structures
2016-10-29 12:30:59 +02:00
Mathijs van de Nes
49e506c13c Fix types::System enum
Unix had incorrectly assigned the value 1 instead of 3
2016-10-29 12:30:30 +02:00
Mathijs van de Nes
e747fcd779 Bump version 2016-10-07 09:22:18 +02:00
Mathijs van de Nes
d5c1be6870 Merge pull request #19 from rowedonalde/display-compressionmethod
Implement Display trait for CompressionMethod
2016-10-06 22:49:48 +02:00
Don Rowe
1075ebf5f4 Add test for Display implementation for CompressionMethod 2016-10-03 21:34:14 -07:00
Don Rowe
a63b7315d0 Implement Display trait for CompressionMethod.
It's an alias to the Debug format, but we can't derive Display yet,
so we associate it explicitly.
2016-10-03 21:18:29 -07:00
Mathijs van de Nes
b1f7a49337 Bump version 2016-08-08 17:44:34 +02:00
Mathijs van de Nes
2a3fe099a6 Derive Debug for read::ZipArchive
Resolves #15
2016-08-08 17:34:02 +02:00
Mathijs van de Nes
18fb1fb0c0 Merge branch 'efyang-master' 2016-04-30 12:18:58 +02:00
Mathijs van de Nes
1d2b43b2c0 Merge branch 'master' of git://github.com/efyang/zip-rs into efyang-master 2016-04-30 12:18:17 +02:00
Edward Yang
064b21b685 Add crc32 accessor for ZipFile 2016-04-29 17:04:08 -05:00
Mathijs van de Nes
e80213e250 Rename version to version_made_by
Also remove System for now
2016-04-27 14:30:00 +02:00
Mathijs van de Nes
078d717c7b Bump version 2016-04-23 20:48:15 +02:00
Mathijs van de Nes
539283587f Merge branch 'anti-social-_file_mode' 2016-04-23 20:47:20 +02:00
Alexander Koval
735bf4dfe4 Make system and version temporarilly private 2016-04-23 13:18:48 +03:00
Alexander Koval
1e935672bd Replace system attribute by enum 2016-04-23 13:12:28 +03:00
Alexander Koval
a16962cd2c Support for external file attributes 2016-04-23 10:31:54 +03:00
Mathijs van de Nes
d95c925ac2 Let ZipWriter::finish be called without consuming
Resolves #10
2016-02-22 19:54:18 +01:00
Mathijs van de Nes
aaa49eb4f1 Update to new bzip2 2016-02-22 19:46:07 +01:00
Mathijs van de Nes
7db32c9165 Remove unused parentheses 2016-02-02 21:17:42 +01:00
Mathijs van de Nes
6ef7a4d545 Merge pull request #9 from addtheice/addtheice-spelling-fix
Update README.md
2016-01-19 20:47:56 +01:00
Arthur Ice
f3bb95f773 Update README.md
spelling fix
2016-01-19 10:47:55 -08:00
Mathijs van de Nes
e47e6096fd Bump version 2015-12-06 11:04:20 +01:00
Mathijs van de Nes
64a67162ab Fix incorrect CRC on large files
The deflate writer did not always accept all data. The extra bytes did end up in the crc
calculation, so they where accounted for twice.

Resolves #8
2015-12-06 11:01:51 +01:00
Mathijs van de Nes
58cd5b958c Update appveyor script 2015-10-12 13:43:07 +02:00
Mathijs van de Nes
55396243d7 Bump version and add Cargo.toml to README 2015-10-05 22:07:36 +02:00
Mathijs van de Nes
50bf7204de Merge branch 'alexbool-master' 2015-10-05 22:02:57 +02:00
Alexander Bulaev
066c0f84ed Remove no-bzip feature because it doesn't work as I expected 2015-10-05 21:29:36 +03:00
Mathijs van de Nes
2e529f4e61 Update README 2015-10-05 19:34:37 +02:00
Mathijs van de Nes
ef52f86dbc Bump version 2015-10-05 19:33:50 +02:00
Mathijs van de Nes
8290da3c56 Improve CI tests 2015-10-05 19:31:47 +02:00
Mathijs van de Nes
de34bd4d26 Merge branch 'alexbool-master' 2015-10-05 19:26:15 +02:00
Alexander Bulaev
2addfa8b81 Made bzip2 compression method optional 2015-10-05 20:01:41 +03:00
Mathijs van de Nes
8afc0a7a7c Bump version 2015-09-03 09:15:09 +02:00
Mathijs van de Nes
c97d6ed760 Use read_exact from ReadPodExt explicitly
The newely added read_exact from std::..::Read has an incompatible signature
and is not yet stabilized. This ensures that the crate will work on stable and
nightly.
2015-09-02 11:52:30 +02:00
Mathijs van de Nes
6ed5906054 Update appveyor config 2015-07-20 16:12:12 +02:00
Mathijs van de Nes
e528d7af04 Bump version 2015-07-20 16:09:13 +02:00
Mathijs van de Nes
0e274281dd Use external crate to convert an MsDos datetime 2015-07-20 16:08:33 +02:00
Mathijs van de Nes
1c9cc0db18 Update appveyor config 2015-07-14 15:09:26 +02:00
Mathijs van de Nes
fe40b4ace1 Disable date/time normalization
The method may panic on Windows. Passing invalid dates is more preferable than correcting the date.
2015-07-13 17:29:10 +02:00
Mathijs van de Nes
a15cf1946e Update appveyor script
With the help of an update to bzip2, everything should build now
2015-07-13 09:52:03 +02:00
Mathijs van de Nes
75b970cb3c Some other attempt at appveyor gcc 2015-07-10 22:34:48 +02:00