Skip to content

Conversation

@joshlf
Copy link
Member

@joshlf joshlf commented Jan 12, 2026

This allows us to simplify the logic which ensures that we never depend
on crate versions which are incompatible with our MSRV. It also avoids a
performance bottleneck on our MSRV in which updating the crates.io index
is very slow.

Closes #1595


Latest Update: v13 — Compare vs v12

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v13 v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v12 v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v11 v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v10 v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v8 v7 v6 v5 v4 v3 v2 v1 Base
v7 v6 v5 v4 v3 v2 v1 Base
v6 v5 v4 v3 v2 v1 Base
v5 v4 v3 v2 v1 Base
v4 v3 v2 v1 Base
v3 v2 v1 Base
v2 v1 Base
v1 Base

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @joshlf, 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 implements a dependency vendoring strategy to enhance the project's reliability and build efficiency. By vendoring dependencies, the project gains better control over crate versions, ensuring compatibility with its MSRV, and mitigates performance issues associated with fetching from crates.io. The aho-corasick crate is the primary example of a dependency brought under this new vendoring system.

Highlights

  • Dependency Vendoring: Introduced vendoring for project dependencies by adding .cargo/config.toml files in the root and tools/ directories, directing Cargo to use local vendor directories instead of crates.io.
  • MSRV Compatibility & Performance: Simplified logic for Minimum Supported Rust Version (MSRV) compatibility by removing explicit version pinning for several development dependencies in Cargo.toml. This change also addresses a performance bottleneck related to slow crates.io index updates.
  • Aho-Corasick Crate Vendored: The aho-corasick crate, along with its extensive source code, documentation, and license files, has been added to tools/vendor/, indicating it is now a vendored dependency.
  • Build Script Update: Modified cargo.sh to ensure that Cargo correctly picks up the vendored dependency configuration by changing the working directory to tools before building cargo-zerocopy.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/ci.yml
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.

Copy link
Contributor

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

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 vendors dependencies to address MSRV compatibility and to improve build performance by avoiding updates to the crates.io index. The approach taken is to use .cargo/config.toml files to redirect dependency resolution to local vendor directories, which is the standard method for vendoring in Cargo. The changes for the tools directory, including its own vendoring setup, appear correct and self-contained. However, there's a critical issue with the configuration at the root level that will likely break the build for the main crate.

@joshlf joshlf force-pushed the Gd8dc83951469fd1467ddb65d2ac524b709fe9503 branch 2 times, most recently from 0c2dd79 to d4c42e5 Compare January 21, 2026 23:03
@joshlf joshlf requested a review from jswrenn January 21, 2026 23:04
@joshlf joshlf force-pushed the Gd8dc83951469fd1467ddb65d2ac524b709fe9503 branch from d4c42e5 to eba2a6e Compare January 21, 2026 23:08
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.90%. Comparing base (43736bd) to head (76961c5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2883   +/-   ##
=======================================
  Coverage   91.90%   91.90%           
=======================================
  Files          20       20           
  Lines        5883     5883           
=======================================
  Hits         5407     5407           
  Misses        476      476           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshlf joshlf force-pushed the Gd8dc83951469fd1467ddb65d2ac524b709fe9503 branch 6 times, most recently from f529f10 to 01ed246 Compare January 22, 2026 01:26
@joshlf joshlf mentioned this pull request Jan 22, 2026
3 tasks
@joshlf joshlf force-pushed the Gd8dc83951469fd1467ddb65d2ac524b709fe9503 branch from 01ed246 to c2fa2b1 Compare January 22, 2026 02:01
@joshlf joshlf enabled auto-merge January 22, 2026 02:05
@joshlf joshlf force-pushed the Gd8dc83951469fd1467ddb65d2ac524b709fe9503 branch from c2fa2b1 to 87b5907 Compare January 22, 2026 22:57
@joshlf joshlf added this pull request to the merge queue Jan 23, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 23, 2026
This allows us to simplify the logic which ensures that we never depend
on crate versions which are incompatible with our MSRV. It also avoids a
performance bottleneck on our MSRV in which updating the crates.io index
is very slow.

Closes #1595

gherrit-pr-id: Gd8dc83951469fd1467ddb65d2ac524b709fe9503
@joshlf joshlf force-pushed the Gd8dc83951469fd1467ddb65d2ac524b709fe9503 branch from 87b5907 to 76961c5 Compare January 23, 2026 16:12
@joshlf joshlf enabled auto-merge January 23, 2026 16:12
@joshlf joshlf added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit 8f361d9 Jan 23, 2026
104 checks passed
@joshlf joshlf deleted the Gd8dc83951469fd1467ddb65d2ac524b709fe9503 branch January 23, 2026 17:01
joshlf added a commit that referenced this pull request Jan 23, 2026
This was made obsolete once we started vendoring our dependencies
(#2883).

gherrit-pr-id: Ge64eead3ff76fbb4564b48248fcd713b51711573
github-merge-queue bot pushed a commit that referenced this pull request Jan 23, 2026
This was made obsolete once we started vendoring our dependencies
(#2883).

gherrit-pr-id: Ge64eead3ff76fbb4564b48248fcd713b51711573
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.

Syn dependency chosen with MSRV-incompatible version in #1586

3 participants