rust-lang / rust-lang/git2-rs

Stabilize SHA-256 support

Open
#1,258 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S-blocked upstream
Dominant language
Rust
Stars
2.1k
Forks
450
Avg merge
11m
Merged PRs (30d)
1

Description

In git2@0.21.0 we have added SHA-256 support behind an unstable Cargo feature unstable-sha256.

https://github.com/rust-lang/git2-rs/blob/dffaf272eb0e62ac15b74283c4e488252db9afc3/Cargo.toml#L37-L52

It is done this way because the upstream libgit2 v1.9 also marks it as experimental. The plan in upstream is that there will be a stable SHA-256 support (+ reftable I believe) in libgit2 v2, and it is coming: https://github.com/libgit2/libgit2/discussions/7149#discussioncomment-16765611. We should move it out from unstable when upstream is ready.

cc rust-lang/git2-rs#1090

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the unstable-sha256 feature declaration in Cargo.toml and review the linked upstream libgit2 discussion for the stable-support criteria. Confirm the upstream release is ready, then determine the repository changes needed to remove the unstable gating; done means SHA-256 support is exposed through the stable configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, rust
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.