PackageTrack
Sign in Get early access

libgit2-sys

Native bindings to the libgit2 library

0.18.8+1.9.7 109M downloads/mo #763 most downloaded on crates.io rust-lang/git2-rs

What this package is like to depend on

Last release 2 days ago

21 Aug 2026

Ships fairly regularly

a new release about every 3 months

Rarely documented

notes for 24 of 148 stable releases

4 versions withdrawn

withdrawn after publishing

12 years old

152 releases · first in 2014

6 releases in the last 12 months

see the full history below

Release timeline

152 releases · Nov 2014 to Aug 2026
2015 2017 2019 2021 2023 2025
Release Pre-release Withdrawn

Releases

latest 60 of 152
  1. 0.18.8+1.9.7 21 Aug 2026
    Release notes

    0.18.7...0.18.8

    Changed

    • Updated to libgit2 1.9.7. This fixes CVE-2026-5917, a potential command injection on the remote host via unescaped repository paths in the libssh2 SSH transport.
    Open source →
  2. 0.18.7+1.9.6 22 Jul 2026
    Release notes

    0.18.6...0.18.7

    Changed

    • Updated to libgit2 1.9.6. This fixes SSH known-host loading with an invalid home directory, an Android crash when HOME is unset, and hidden symbol visibility for static builds.
    Open source →
  3. 0.18.6+1.9.5 22 Jul 2026
    Release notes

    0.18.5...0.18.6

    Added

    • Added bindings for GIT_OPT_ADD_SSL_X509_CERT.
    • Added bindings for GIT_OPT_GET_PACK_MAX_OBJECT_SIZE and GIT_OPT_SET_PACK_MAX_OBJECT_SIZE.

    Changed

    Open source →
  4. 0.18.5+1.9.4 29 May 2026
    Release notes

    0.18.4...0.18.5

    Changed

    Open source →
  5. 0.18.4+1.9.3 08 May 2026
    Release notes

    0.18.3...0.18.4

    Changed

    Fixed

    • Fixed the signature of git_config_backend::unlock. Previously the second c_int argument was missing and the declaration was unusable. #1181

    Added

    • Added experimental SHA256 OID support behind a new unstable-sha256 Cargo feature. This reflects upstream libgit2's GIT_EXPERIMENTAL_SHA256 feature gate, and requires the linked libgit2 C library to be built with the experimental flag. When enabled, the build supports linking against a system libgit2-experimental.so. See the feature description in Cargo.toml for ABI-stability caveats. #1201
    • Added binding for git_repository_oid_type. #1204
    • Added binding for git_oid_is_zero, replacing the deprecated git_oid_iszero. #1205
    • Added binding for git_remote_oid_type. #1242
    • Added GIT_REPOSITORY_INIT_RELATIVE_GITLINK flag. #1242
    • Added bindings for the git_merge_file_input API, including git_merge_file_input_init. #1210
    • Added bindings for git_odb_stream and git_odb_stream_t. #1181
    • Added bindings for git_reference_iterator. #1181
    • Added bindings for APIs from git2/sys/config.h, including the missing iterator function on git_config_backend. #1181
    • Added binding for git_reference_dup. #1233
    • Added binding for git_signature_default_from_env. #1237
    Open source →
  6. 0.18.3+1.9.2 06 Dec 2025
    Release notes

    0.18.2...0.18.3

    Changed

    • Updated to libgit2 1.9.2 #1195

      Note that this release fixes two security issues. However, the Rust bindings do not provide direct support for the affected APIs. In particular:

      • The libgit2-sys crate does not support building the vendored C library with the GIT_SSH_EXEC setting. This will only be an issue if you are binding to a system-provided library built with this setting.
      • The git2 crate does not support custom SSH credentials. However, the libgit2-sys crate does export the git_cred_ssh_custom_new C-binding. Any projects using the C bindings directly are affected.
    Open source →
  7. 0.18.2+1.9.1 21 Jun 2025
    Release notes

    0.18.1...0.18.2

    Changed

    Open source →
  8. 0.18.1+1.9.0 17 Mar 2025
    Release notes

    0.18.0...0.18.1

    Added

    • Added binding for git_branch_upstream_merge #1131
    • Added bindings for git_merge_file_options and git_merge_file_result, git_merge_file_options_init, git_merge_file_from_index, git_merge_file_result_free, and updated git_merge_file_flag_t. #1062

    Fixed

    • Fixed linking to advapi32 on Windows for recent nightly versions of Rust. #1143
    Open source →
  9. 0.18.0+1.9.0 05 Jan 2025
    Release notes

    0.16.2...0.17.0

    Added

    • Added bindings for git_repository_commondir #1079
    • Added bindings for git_merge_base_octopus #1088

    Changed

    • ❗ Updated to libgit2 1.9.0 #1111
    • ❗ Removed the ssh_key_from_memory Cargo feature, it was unused. #1087
    Open source →
  10. 0.17.0+1.8.1 14 Jun 2024
    Release notes

    0.16.2...0.17.0

    Changed

    Open source →
  11. 0.16.2+1.7.2 07 Feb 2024
    Release notes

    0.16.1...0.16.2

    Added

    • Added binding for git_commit_lookup_prefix. #1011
    • Added binding for git_object_lookup_prefix. #1014

    Changed

    Open source →
  12. 0.16.1+1.7.1 28 Aug 2023
    Release notes

    0.16.0...0.16.1

    Fixed

    • Fixed publish of 0.16.0 missing the libgit2 submodule.
    Open source →
  13. 0.16.0+1.7.1 28 Aug 2023 withdrawn
    Release notes

    0.15.2...0.16.0

    Added

    • Added LIBGIT2_NO_VENDOR environment variable to force using the system libgit2. #966
    • Added binding for git_blame_buffer. #981

    Changed

    Fixed

    • Fixed builds with cargo's -Zminimal-versions. #960
    Open source →
  14. 0.15.2+1.6.4 28 May 2023
    Release notes

    0.15.1...0.15.2

    Added

    • Added bindings for stash options. #930
    Open source →
  15. 0.15.1+1.6.4 16 Apr 2023
    Release notes

    0.15.0...0.15.1

    Changed

    • Updated to libgit2 1.6.4. This brings in a minor fix on Windows when the ProgramData directory does not exist. #948
    Open source →
  16. 0.15.0+1.6.3 02 Apr 2023
    Release notes

    0.14.2...0.15.0

    Added

    • Added bindings for git_remote_name_is_valid, git_reference_name_is_valid, and git_tag_name_is_valid. #882
    • Added bindings for git_indexer support. #911
    • Added bindings for git_index_find_prefix. #903
    • Added support for the deprecated group-writeable blob file mode. #887

    Changed

    • Updated libssh2-sys from 0.2 to 0.3. This brings in numerous changes, including SHA2 algorithm support with RSA. #919
    • Updated to libgit2 1.6.3. This brings in many changes, including better SSH host key support on Windows and better SSH host key algorithm negotiation. 1.6.3 is now the minimum supported version. #935
    • The GIT_DIFF_ constants have been changed to be a git_diff_option_t type. #935

    Fixed

    • Fixed the rerun-if-changed build script support on Windows. This is only relevant for those working within the git2-rs source tree. #916
    Open source →
  17. 0.14.2+1.5.1 20 Jan 2023
    Release notes

    0.14.1...0.14.2

    Changed

    Open source →
  18. 0.14.1+1.5.0 10 Jan 2023
    Release notes

    0.14.0...0.14.1

    Added

    • Added variants to git_cert_ssh_raw_type_t. #909
    Open source →
  19. 0.14.0+1.5.0 28 Jul 2022
    Release notes

    0.13.4...0.14.0

    Added

    • Added bindings for ownership validation. #839

    Changed

    Open source →
  20. 0.13.5+1.4.5 20 Jan 2023
    Release notes

    0.13.4...0.13.5

    Changed

    Open source →
  21. 0.13.4+1.4.2 10 May 2022
    Release notes

    0.13.3...0.13.4

    Added

    • Added bindings for git_commit_body #835
    Open source →
  22. 0.13.3+1.4.2 27 Apr 2022
    Release notes

    0.13.2...0.13.3

    Changed

    • Updated the bundled libgit2 to 1.5.0-alpha. #822
    • Changed the pkg-config probe to restrict linking against a version of a system-installed libgit2 to a version less than 1.5.0. Previously it would allow any version above 1.4.0 which could pick up an API-breaking version. #817
    • When using pkg-config to locate libgit2, the system lib dirs are no longer added to the search path. #831
    • When using the zlib-ng-compat Cargo feature, libssh2-sys is no longer automatically included unless you also enable the ssh feature. #833
    Open source →
  23. 0.13.2+1.4.2 10 Mar 2022
    Release notes

    0.13.1...0.13.2

    Added

    • Added bindings for git_odb_exists_ext. #818
    Open source →
  24. 0.13.1+1.4.2 28 Feb 2022
    Release notes Open source →
  25. 0.13.0+1.4.1 24 Feb 2022
    Release notes

    0.12.26...0.13.0

    Changed

    Open source →
  26. 0.12.26+1.3.0 01 Dec 2021

    Nothing published for this version

  27. 0.12.25+1.3.0 16 Nov 2021

    Nothing published for this version

  28. 0.12.24+1.3.0 01 Oct 2021

    Nothing published for this version

  29. 0.12.23+1.2.0 08 Sep 2021

    Nothing published for this version

  30. 0.12.22+1.1.0 12 Aug 2021

    Nothing published for this version

  31. 0.12.21+1.1.0 24 May 2021

    Nothing published for this version

  32. 0.12.20+1.1.0 11 May 2021

    Nothing published for this version

  33. 0.12.19+1.1.0 19 Apr 2021

    Nothing published for this version

  34. 0.12.18+1.1.0 21 Jan 2021

    Nothing published for this version

  35. 0.12.17+1.1.0 28 Dec 2020

    Nothing published for this version

  36. 0.12.16+1.1.0 22 Dec 2020

    Nothing published for this version

  37. 0.12.15+1.1.0 18 Dec 2020

    Nothing published for this version

  38. 0.12.14+1.1.0 14 Oct 2020

    Nothing published for this version

  39. 0.12.13+1.0.1 08 Sep 2020

    Nothing published for this version

  40. 0.12.12+1.0.1 21 Aug 2020

    Nothing published for this version

  41. 0.12.11+1.0.1 19 Aug 2020

    Nothing published for this version

  42. 0.12.9+1.0.1 21 Jul 2020

    Nothing published for this version

  43. 0.12.8+1.0.1 21 Jul 2020 withdrawn

    Nothing published for this version

  44. 0.12.7+1.0.0 03 Jun 2020

    Nothing published for this version

  45. 0.12.6+1.0.0 19 May 2020

    Nothing published for this version

  46. 0.12.5+1.0.0 24 Apr 2020

    Nothing published for this version

  47. 0.12.4+1.0.0 22 Apr 2020

    Nothing published for this version

  48. 0.12.3+1.0.0 10 Apr 2020

    Nothing published for this version

  49. 0.12.2+1.0.0 01 Apr 2020

    Nothing published for this version

  50. 0.12.1+0.99.0 01 Apr 2020

    Nothing published for this version

  51. 0.12.0+0.99.0 13 Mar 2020

    Nothing published for this version

  52. 0.11.0+0.99.0 26 Feb 2020

    Nothing published for this version

  53. 0.10.0 12 Dec 2019

    Nothing published for this version

  54. 0.9.2 20 Nov 2019

    Nothing published for this version

  55. 0.9.1 09 Sep 2019

    Nothing published for this version

  56. 0.9.0 20 Aug 2019

    Nothing published for this version

  57. 0.8.2 24 Jul 2019

    Nothing published for this version

  58. 0.8.1 17 Jun 2019

    Nothing published for this version

  59. 0.8.0 04 Jun 2019

    Nothing published for this version

  60. 0.7.11 13 Dec 2018

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive