Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub use crate::compression::{CompressionMethod, SUPPORTED_COMPRESSION_METHODS};
pub use crate::datetime::DateTime;
pub use crate::format::aes::AesMode;
pub use crate::format::flags::System;
pub use crate::read::HasZipMetadata;
pub use crate::read::{HasZipMetadata, ZipFileData};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This change will cause a compilation error because ZipFileData is not publicly exported from the read module (crate::read). In src/read/mod.rs, ZipFileData is only imported privately via use crate::types::ZipFileData;.

To fix this, you can either:

  1. Re-export ZipFileData directly from crate::types in src/lib.rs (consistent with how DateTime or System are exported).
  2. Or, if you want it to be accessible via zip::read::ZipFileData as well, you must also modify src/read/mod.rs to publicly export it (pub use crate::types::ZipFileData;).
Suggested change
pub use crate::read::{HasZipMetadata, ZipFileData};
pub use crate::read::HasZipMetadata;
pub use crate::types::ZipFileData;

pub use crate::read::{ZipArchive, ZipReadOptions};
pub use crate::spec::{ZIP64_BYTES_THR, ZIP64_ENTRY_THR};
pub use crate::write::ZipWriter;
Expand Down