Rust 1.70: Cannot import Zip Extensions

Since the recent Rust language upgrade from 1.60 to 1.70 approximately, there are pieces of code that stopped working.

The compiler says this import is unused.

use zip_extensions::ZipWriterExtensions;

Further, it says that there is no such method as "create_from_directory_with_options".

zip_writer.create_from_directory_with_options(...)

Can you advise how to correct the imports here?

This probably is not related to Rust version. You may have updated zip-extensions from 0.6.1 to 0.6.2, but haven't updated your zip crate to match.

Yes, you are correct. The zip version does not match the zip-extensions. The versions are now set to:

zip = "0.6.6"
zip-extensions = "0.6.2"

THANK YOU :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.