Skip to content

chore(deps): update rust crate git2 to 0.21.0 - #17060

Merged
ehuss merged 1 commit into
masterfrom
renovate/git2-0.x
Jun 1, 2026
Merged

chore(deps): update rust crate git2 to 0.21.0#17060
ehuss merged 1 commit into
masterfrom
renovate/git2-0.x

Conversation

@renovate

@renovate renovate Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
git2 workspace.dependencies minor 0.20.40.21.0

Release Notes

rust-lang/git2-rs (git2)

v0.21.0

Compare Source

0.20.4...main

Added
  • Added experimental SHA256 repository support behind the new unstable-sha256 Cargo feature,
    along with *_ext API variants that accept an ObjectFormat.
    #​1206
  • Added opts::set_cache_max_size() and opts::get_cached_memory().
    #​1188
  • Added Repository::object_format() and a new ObjectFormat enum.
    #​1204
  • Added Repository::set_config().
    #​1208
  • Added merge_file() along with MergeFileInput.
    #​1210
  • Added Repository::refdb_compress() for packing loose refs.
    #​1221
  • Added public Refdb type, along with Repository::refdb() and Repository::set_refdb(). Repository::refdb_compress() now delegates to Refdb::compress().
    #​1228
  • Added Revspec::into_objects().
    #​1230
  • Added BlameHunk::final_committer(), BlameHunk::orig_committer(), BlameHunk::summary(), and BlameHunk::summary_bytes().
    #​1231
  • Implemented Clone for Reference.
    #​1233
  • Added Repository::author_from_env() and Repository::committer_from_env().
    #​1237
  • Added impl From<Utf8Error> for Error.
    #​1239
Changed
  • ❗ The ssh, https, and cred Cargo features are no longer enabled by default.
    Previously default = ["ssh", "https"]; now default = [].
    Enable them explicitly if you rely on credential helpers or transport support.
    #​1168
  • CredentialHelper and the url dependency are now gated behind the new cred Cargo feature.
    Enabling ssh or https transitively enables cred.
    #​1168
  • ❗ Updated to the 2021 edition.
    #​1173
  • ❗ Many string accessors that previously returned Option<&str>
    now return Result<&str, Error> or Result<Option<&str>, Error>,
    so callers can distinguish a missing value from a non-UTF-8 one.
    #​1241
  • BlameHunk::final_signature, BlameHunk::final_committer, BlameHunk::orig_signature, and BlameHunk::orig_committer
    now return Option to avoid segfaults when signature information is missing.
    #​1254
  • Bumped requirement to libgit2-sys 0.18.4, which updates libgit2 to 1.9.3.
    #​1242
Fixed
  • Fixed MergeOptions::skip_reuc() to use the correct GIT_MERGE_SKIP_REUC flag.
    #​1194
  • Repository::submodules() now returns an Error when the underlying git_submodule_lookup() call to libgit2 fails, rather than panicking with a failed assertion.
    #​1220
  • Reference::is_valid_name() now propagates errors from CString conversion instead of panicking.
    #​1229
  • Fixed Remote::list() to return an empty list instead of erroring
    when the remote advertises no refs.
    #​1250
  • ReferenceNames now returns an Err for non-UTF-8 branch names instead of panicking.
    #​1239
Documentation
  • Added note regarding potentially confusing behavior of git_checkout_head.
    #​1149
  • Added comments describing the IndexAddOption flags.
    #​1163
  • Updated README note about the ssh feature.
    #​1187
  • Improved function docs for Repository::tag_foreach().
    #​1190
  • Fixed doc comment typo in StatusOptions.
    #​1199
  • Fixed missing period in module documentation.
    #​1219
  • Small wording fix in Signature::from_raw_const() docs.
    #​1222
  • Replaced discussion of missing gist in README.
    #​1223
  • Documented the bitflag methods for checking flags.
    #​1224
  • Clarified CheckoutBuilder::update_index() documentation.
    #​1232
  • Added more missing documentation.
    #​1235
  • Fixed typo in Repository::stash_save_ext() docs.
    #​1245
  • Added example showing retrieval of the latest commit for a file.
    #​1243
  • Replaced comma with period in CheckoutBuilder::refresh() docs.
    #​1252
Internals
  • Dropped civet/conduit from dev-dependencies.
    #​1170
  • Updated dependencies.
    #​1171
  • Fixed lockfile verification in CI.
    #​1177
  • Updated CI and documentation to cover feature combinations.
    #​1182
  • Listed all examples that may need HTTP and SSH.
    #​1196
  • Allowed publishing from any ref in the publish workflow.
    #​1198
  • Bumped time from 0.3.41 to 0.3.47.
    #​1215
  • Added end-to-end test for branch name on initialization.
    #​1244
  • Added end-to-end test for stash count.
    #​1246
  • Added end-to-end tests demonstrating use of Repository::statuses().
    #​1251
  • Internal refactors preparing for experimental SHA256 OID support.
    #​1201
    #​1205

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 5am on the first day of the month"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 1, 2026
@rustbot

rustbot commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, epage, weihanglo

@ehuss
ehuss force-pushed the renovate/git2-0.x branch from dc9de9e to e5fe33a Compare June 1, 2026 20:46
@rustbot rustbot added A-git Area: anything dealing with git Command-fix labels Jun 1, 2026
@ehuss
ehuss enabled auto-merge June 1, 2026 20:48
@ehuss
ehuss added this pull request to the merge queue Jun 1, 2026
Merged via the queue into master with commit 0b1123a Jun 1, 2026
31 checks passed
@ehuss
ehuss deleted the renovate/git2-0.x branch June 1, 2026 21:53
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 1, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jun 3, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jun 3, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Jun 3, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
@rustbot rustbot added this to the 1.98.0 milestone Jun 3, 2026
pull Bot pushed a commit to xtqqczze/rust-lang-rustc-dev-guide that referenced this pull request Jun 4, 2026
Update cargo submodule

14 commits in fbb61be30e5f9ac3a6ad58e56a5c0f5db2d2b3ef..0b1123a48825309b697312b44fdb64b3df00c958
2026-05-26 15:08:03 +0000 to 2026-06-01 21:20:28 +0000
- chore(deps): update rust crate git2 to 0.21.0 (rust-lang/cargo#17060)
- chore(deps): update compatible (rust-lang/cargo#17057)
- fix(util): constant type for Redox OS  (rust-lang/cargo#17064)
- chore(deps): update crate-ci/typos action to v1.47.0 (rust-lang/cargo#17059)
- chore(deps): update embarkstudios/cargo-deny-action action to v2.0.20 (rust-lang/cargo#17058)
- chore(deps): update cargo-semver-checks to v0.48.0 (rust-lang/cargo#17054)
- chore: bump to 0.99.0; update changelog (rust-lang/cargo#17049)
- Bump cargo-util-schemas to 0.14.2 (rust-lang/cargo#17048)
- feat: Add edition for scripts anytime we mutate the manifest (rust-lang/cargo#17038)
- docs: clarify on crate removal post RFC 3660 (rust-lang/cargo#17036)
- feat: Add --output-format=json to cargo doc as an unstable option (rust-lang/cargo#17025)
- feat(diag): Add the 'cargo::default' group (rust-lang/cargo#17033)
- fix(add): Ensure erros are lower case (rust-lang/cargo#17037)
- fix(diag): Report summaries for unused_deps (rust-lang/cargo#17034)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-git Area: anything dealing with git Command-fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants