rust-lang / rust-lang/git2-rs

Consider supporting older versions of `libgit2`?

Open
#864 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hey, my package manager currently only has libgit2 version 1.3.0 available. I'm using MacPorts (on macOS 10.14.6), but if I'm not mistaken, Ubuntu 22.04 uses version 1.1.0.

I think it would be nice if this package could support older versions of libgit2 (up until a certain point ofc.), so that as users, we don't have to compile it.

I'm aware that https://github.com/rust-lang/git2-rs/pull/806 bumped the minimum version from 1.3.0 to 1.4.0 because newer features were needed, so I'm definitely not complaining about using newer features for better efficiency! I mostly just wanted to ask how big of an effort it would be to support older versions, and whether it is something that would be desired by this crate?

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 by reviewing the current libgit2 version requirement and the compatibility changes in rust-lang/git2-rs#806. Compare the APIs needed by this crate with libgit2 1.3.0 and 1.1.0, then determine whether a support boundary can be defined. Done means documenting a feasible minimum version and the required implementation and test scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.