Skip to content

deps: avoid pulling in zeroize_derive - #720

Merged
Its-Just-Nans merged 1 commit into
zip-rs:masterfrom
CathalMullan:zeroize
Mar 16, 2026
Merged

deps: avoid pulling in zeroize_derive#720
Its-Just-Nans merged 1 commit into
zip-rs:masterfrom
CathalMullan:zeroize

Conversation

@CathalMullan

Copy link
Copy Markdown
Contributor

This prevents pulling in any heavy proc macro deps (syn, quote, proc-macro2, etc).

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the project's dependency management by explicitly disabling an unnecessary feature flag for the zeroize crate. The primary goal is to reduce the overall build footprint and avoid pulling in large, often transitive, procedural macro dependencies, thereby contributing to a more efficient and streamlined build process.

Highlights

  • Dependency Optimization: Removed the zeroize_derive feature from the zeroize dependency in Cargo.toml. This change prevents the inclusion of heavy procedural macro dependencies such as syn, quote, and proc-macro2.
Changelog
  • Cargo.toml
    • Removed the zeroize_derive feature from the zeroize dependency declaration.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request removes the zeroize_derive feature from the zeroize dependency to avoid pulling in heavy proc-macro dependencies. This is a good optimization. My review includes a suggestion to further minimize the dependency footprint by also disabling default features for zeroize, which is consistent with how other dependencies are configured in Cargo.toml.

Note: Security Review has been skipped due to the limited scope of the PR.

Comment thread Cargo.toml
@Its-Just-Nans
Its-Just-Nans added this pull request to the merge queue Mar 16, 2026
Merged via the queue into zip-rs:master with commit 87d0052 Mar 16, 2026
130 checks passed
@Pr0methean Pr0methean mentioned this pull request Mar 16, 2026
@Its-Just-Nans

Copy link
Copy Markdown
Member

Thanks

@Pr0methean Pr0methean mentioned this pull request Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants