Skip to content

mingw-w64-git: make Rust SHA1DC available where supported - #237

Merged
dscho merged 1 commit into
git-for-windows:mainfrom
dscho:rust-sha1dc-packaging
Nov 27, 2026
Merged

dscho merged 1 commit into
git-for-windows:mainfrom
dscho:rust-sha1dc-packaging

Conversation

@dscho

@dscho dscho commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

git-for-windows/git#6508 promises dramatic speedups for collision-detecting SHA-1. Its Rust backend requires Rust 1.87 or newer, so Git does not build it by default. The Rust toolchains used by Git for Windows are already new enough. Prepare the release recipe to opt in explicitly when Rust is enabled and the source includes the backend. The original C implementation remains the runtime default.

Merge this packaging PR before git-for-windows/git#6508 so the snapshot built when the Git PR merges includes the optional Rust backend.

Let users opt into Rust SHA1DC without rebuilding Git. Include the
optional backend only when the source provides it, Rust is enabled,
and the compiler is at least 1.87.0.

This leaves older releases and architectures built without Rust
unaffected. The C backend remains the runtime default.

Assisted-by: GPT-6.2 Sol
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
dscho requested review from mjcheetham and rimrul November 27, 2026 09:46
@dscho dscho self-assigned this Nov 27, 2026

@mjcheetham mjcheetham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Exciting!

@dscho
dscho merged commit e953778 into git-for-windows:main Nov 27, 2026
3 checks passed
@dscho
dscho deleted the rust-sha1dc-packaging branch November 27, 2026 10:56
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