zip breaking changes
Updated December 4, 2026
On this page
Latest version 9.9.0, released November 28, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 8.6.0 to 9.5.0: 107 breaking changes in 13 versions.
- From 0.6.0 to 9.5.0: 243 breaking changes in 29 versions.
zip 9.5.0 breaking changes
- Signature changed
zip::read::ExtractOptions
Was struct ExtractOptions; now struct ExtractOptions<F = fn(&Path) -> bool>. crates.io - Signature changed
zip::read::ZipArchive::extract_with_options
Was fn extract_with_options<P: AsRef<Path>>(&mut self, directory: P, extract_options: ExtractOptions) -> ZipResult<()>; now fn extract_with_options<P: AsRef<Path>>(&mut self, directory: P, extract_options: ExtractOptions<impl... crates.io - Signature changed
zip::read::ZipArchive::par_extract_from_path_with_options
Was fn par_extract_from_path_with_options<P: AsRef<Path>, Q: AsRef<Path>>(&mut self, archive_path: P, destination: Q, options: ExtractOptions) -> ZipResult<()>; now fn par_extract_from_path_with_options<P: AsRef<Path>, Q: AsRef<Path>>(&mut... crates.io - Signature changed
zip::read::ZipArchive::par_extract_with_options
Was fn par_extract_with_options<P: AsRef<Path>>(&mut self, directory: P, options: ExtractOptions) -> ZipResult<()>; now fn par_extract_with_options<P: AsRef<Path>>(&mut self, directory: P, options: ExtractOptions<impl RootDirFilter>) ->... crates.io - Signature changed
zip::read::ZipArchive::par_extract_with_reader_factory_and_options
Was fn par_extract_with_reader_factory_and_options<P, F, Filter>(&mut self, directory: P, reader_factory: F, extract_options: ExtractOptions, root_dir_filter: Option<Filter>) -> ZipResult<()> where P: AsRef<Path>, F: Fn() ->... crates.io - Signature changed
zip::ZipArchive::extract_with_options
Was fn extract_with_options<P: AsRef<Path>>(&mut self, directory: P, extract_options: ExtractOptions) -> ZipResult<()>; now fn extract_with_options<P: AsRef<Path>>(&mut self, directory: P, extract_options: ExtractOptions<impl... crates.io - Signature changed
zip::ZipArchive::par_extract_from_path_with_options
Was fn par_extract_from_path_with_options<P: AsRef<Path>, Q: AsRef<Path>>(&mut self, archive_path: P, destination: Q, options: ExtractOptions) -> ZipResult<()>; now fn par_extract_from_path_with_options<P: AsRef<Path>, Q: AsRef<Path>>(&mut... crates.io - Signature changed
zip::ZipArchive::par_extract_with_options
Was fn par_extract_with_options<P: AsRef<Path>>(&mut self, directory: P, options: ExtractOptions) -> ZipResult<()>; now fn par_extract_with_options<P: AsRef<Path>>(&mut self, directory: P, options: ExtractOptions<impl RootDirFilter>) ->... crates.io - Signature changed
zip::ZipArchive::par_extract_with_reader_factory_and_options
Was fn par_extract_with_reader_factory_and_options<P, F, Filter>(&mut self, directory: P, reader_factory: F, extract_options: ExtractOptions, root_dir_filter: Option<Filter>) -> ZipResult<()> where P: AsRef<Path>, F: Fn() ->... crates.io
zip 9.4.1 breaking changes
- Signature changed
zip::write::ZipWriter::merge_archive
Was fn merge_archive<R>(&mut self, mut source: ZipArchive<R>) -> ZipResult<()> where R: Read + Seek,; now fn merge_archive<R>(&mut self, source: ZipArchive<R>) -> ZipResult<()> where R: Read + Seek,. crates.io - Signature changed
zip::ZipWriter::merge_archive
Was fn merge_archive<R>(&mut self, mut source: ZipArchive<R>) -> ZipResult<()> where R: Read + Seek,; now fn merge_archive<R>(&mut self, source: ZipArchive<R>) -> ZipResult<()> where R: Read + Seek,. crates.io
zip 9.1.3 breaking changes
- Behavior changed
When only the zopfli feature is enabled, writing with a deflate compression level below 10 now returns an error. Code that passes lower levels must use a level of 10 or higher. github.com
zip 9.1.2 breaking changes
- Behavior changed
File creation during extraction no longer follows symbolic links. Code that relied on extracting through existing symlinks will see different results. github.com - Behavior changed
Archives with a Unicode Path extra field that would rename the entry are now rejected when written. Check that code writing such entries handles the error. github.com
zip 9.1.1 breaking changes
- Behavior changed
merge_archive
merge_archive now returns an error when the archives contain duplicate names, where it previously accepted them. Check merged archives for duplicate names before calling it. github.com
zip 9.1.0 breaking changes
- Behavior changed
Member names in CP437-encoded archives are decoded differently than before, so code comparing names may see different results. github.com - Behavior changed
extract_with_options
Extraction now checks that archive headers are consistent, so archives that were previously accepted may now fail to extract. github.com - Behavior changed
raw_copy_file
Copied entries now keep their original name bytes and UTF-8 flag instead of having them rewritten. github.com
Older versions
24 older versions, each with its first changes. Sign up to see every change
Show 24 older versions
zip 9.0.5 breaking changes
- Signature changed
zip::unstable::stream::ZipStreamReader
Was struct ZipStreamReader<R>(R); now struct ZipStreamReader<R>. crates.io - Signature changed
zip::unstable::stream::ZipStreamReader::visit
Was fn visit<V: ZipStreamVisitor>(mut self, visitor: &mut V) -> ZipResult<()>; now fn visit<V: ZipStreamVisitor>(self, visitor: &mut V) -> ZipResult<()>. crates.io
zip 9.0.4 breaking changes
- Signature changed
zip::read::read_zipfile_from_stream_with_options
Was fn read_zipfile_from_stream_with_options<'a, R: Read>(reader: &'a mut R, mut options: ZipReadOptions<'a>) -> ZipResult<Option<ZipFile<'a, R>>>; now fn read_zipfile_from_stream_with_options<'a, R: Read>(reader: &'a mut R, options... crates.io
zip 9.0.3 breaking changes
- Behavior changed
On non-Unix systems, extracted directories now preserve their read-only status from the archive. Code relying on extracted directories always being writable may need adjusting. github.com
zip 9.0.1 breaking changes
- Behavior changed
set_permissions no longer follows symlinks when extracting without streaming, so code relying on the old symlink-following behavior must change. github.com - Behavior changed
Archives that were previously accepted, with an empty central directory whose offset lies past the end-of-central-directory record, now fail to open. github.com
And 2 more in this version.
zip 9.0.0 breaking changes
- Removed
Deprecated elements were removed from the package. Code that uses them must be updated. github.com - Removed
*_zip64_comment
The deprecated *_zip64_comment methods were removed. Code that still calls them will no longer compile. github.com
And 71 more in this version.
zip 9.0.0-pre3 breaking changes
- Signature changed
zip::read::ZipFile::extra_data
The extra_data name was changed to extra_fields. Update code that uses the old name. crates.io
zip 9.0.0-pre1 breaking changes
- Removed
A macro export was removed from the package. github.com - Removed
Deprecated elements were removed from the package. Code that uses them must be updated. github.com
And 5 more in this version.
zip 8.6.0 breaking changes
- Behavior changed
ZipFlags
Code that matches exhaustively on ZipFlags will no longer compile and needs a wildcard arm added. github.com
zip 8.5.0 breaking changes
- Removed
zip64 comment
The zip64 comment is removed and replaced by the zip64 extensible data sector. Code that uses the zip64 comment must switch to the new sector. github.com - Signature changed
extra_field
The extra_field type changed from Arc<Vec<u8>> to Arc<[u8]>. Code that names or constructs this type must be updated. github.com
And 8 more in this version.
zip 8.4.0 breaking changes
- Signature changed
zip::read::ZipArchive::get_aes_verification_key_and_salt
Was fn get_aes_verification_key_and_salt(&mut self, file_number: usize) -> ZipResult<Option<AesInfo>>; now fn get_aes_verification_key_and_salt(&mut self, file_number: usize) -> ZipResult<Option<crate::aes::AesInfo>>. crates.io - Signature changed
zip::ZipArchive::get_aes_verification_key_and_salt
Was fn get_aes_verification_key_and_salt(&mut self, file_number: usize) -> ZipResult<Option<AesInfo>>; now fn get_aes_verification_key_and_salt(&mut self, file_number: usize) -> ZipResult<Option<crate::aes::AesInfo>>. crates.io
zip 8.0.0 breaking changes
- Removed
DateTime
The deprecated methods of DateTime are removed in this release, so code calling them will no longer compile and must be updated. github.com - Removed
zip::DateTime::from_time
Use DateTime::try_from instead. crates.io
And 2 more in this version.
zip 7.4.0 breaking changes
- Configuration changed
The minimum supported Rust version is now 1.88, and dependencies were updated. Users on older Rust toolchains must upgrade before building this release. github.com
zip 7.3.0 breaking changes
- Removed
zip::extra_fields::test_bad_extended_timestamp
zip::extra_fields::test_bad_extended_timestamp was removed in zip 7.3.0 crates.io - Behavior changed
abort_file
When abort_file() fails while the non-large-file limit is exceeded, it now returns an error instead of succeeding silently. Callers that ignored its result may now see errors. github.com
And 27 more in this version.
zip 7.3.0-pre1 breaking changes
- Behavior changed
Encrypting files with an empty ZipCrypto password now fails. Decryption with an empty password still works, so callers that encrypt with an empty password must supply a non-empty one. github.com
zip 7.2.0 breaking changes
- Default changed
Zip files created without an explicit platform now record the local platform rather than always Unix. Code that relies on the old Unix value in archive metadata may see different output. github.com - Signature changed
zip::read::ZipFile
Was struct ZipFile<'a, R: Read>; now struct ZipFile<'a, R: Read + ?Sized>. crates.io
zip 7.0.0 breaking changes
- Removed
getrandom
The getrandom feature flag is removed in this release; code that enables it must drop it or find another way to get that support. github.com - Removed
hmac
The hmac feature flag is removed in this release; code that enables it must drop it or find another way to get that support. github.com
And 5 more in this version.
zip 6.0.0 breaking changes
- Signature changed
zip::write::ExtendedFileOptions::add_extra_data
Was fn add_extra_data(&mut self, header_id: u16, data: Box<[u8]>, central_only: bool) -> ZipResult<()>; now fn add_extra_data<D: AsRef<[u8]>>(&mut self, header_id: u16, data: D, central_only: bool) -> ZipResult<()>. crates.io - Signature changed
zip::write::FileOptions::add_extra_data
Was fn add_extra_data(&mut self, header_id: u16, data: Box<[u8]>, central_only: bool) -> ZipResult<()>; now fn add_extra_data<D: AsRef<[u8]>>(&mut self, header_id: u16, data: D, central_only: bool) -> ZipResult<()>. crates.io
zip 4.1.0 breaking changes
- Signature changed
zip::read::ZipArchive::by_index_seek
Was fn by_index_seek(&mut self, index: usize) -> ZipResult<ZipFileSeek<R>>; now fn by_index_seek(&mut self, index: usize) -> ZipResult<ZipFileSeek<'_, R>>. crates.io - Signature changed
zip::read::ZipArchive::by_name
Was fn by_name(&mut self, name: &str) -> ZipResult<ZipFile<R>>; now fn by_name(&mut self, name: &str) -> ZipResult<ZipFile<'_, R>>. crates.io
And 6 more in this version.
zip 4.0.0 breaking changes
- Configuration changed
Optional dependencies now use dep: syntax, so they no longer create implicit feature flags with the same name. Users who enable those implicit features must declare the features explicitly. github.com
zip 3.0.0 breaking changes
- Removed
deflate-miniz
The deprecated deflate-miniz feature flag is gone. Code or Cargo.toml that enables it must switch to another deflate backend feature. github.com
zip 2.6.0 breaking changes
- Signature changed
zip::read::read_zipfile_from_stream
Was fn read_zipfile_from_stream<R: Read>(reader: &mut R) -> ZipResult<Option<ZipFile<'_>>>; now fn read_zipfile_from_stream<R: Read>(reader: &mut R) -> ZipResult<Option<ZipFile<'_, R>>>. crates.io - Signature changed
zip::read::ZipArchive::by_index
Was fn by_index(&mut self, file_number: usize) -> ZipResult<ZipFile<'_>>; now fn by_index(&mut self, file_number: usize) -> ZipResult<ZipFile<'_, R>>. crates.io
And 19 more in this version.
zip 2.5.0 breaking changes
- Signature changed
zip::result::ZipError::InvalidArchive
Was InvalidArchive(&'static str); now InvalidArchive(Cow<'static, str>). crates.io - Signature changed
zip::result::ZipError::Io
Was Io(#[from] io::Error); now Io(io::Error). crates.io
zip 1.1.0 breaking changes
- Removed
zip::result::InvalidPassword
zip::result::InvalidPassword was removed in zip 1.1.0 crates.io - Removed
zip::write::ZipWriter::end_extra_data
zip::write::ZipWriter::end_extra_data was removed in zip 1.1.0 crates.io
And 42 more in this version.
zip 0.6.0 breaking changes
- Signature changed
zip::DateTime::from_time
Was fn from_time(tm: ::time::Tm) -> Result<DateTime, ()>; now fn from_time(dt: OffsetDateTime) -> Result<DateTime, ()>. crates.io - Signature changed
zip::DateTime::to_time
Was fn to_time(&self) -> ::time::Tm; now fn to_time(&self) -> Result<OffsetDateTime, ComponentRange>. crates.io
And 5 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.