Crates / git2
Rust crate · real downloads · data Oct 24, 2026
git2 downloads, and should you depend on it?
Bindings to libgit2 for interoperating with git repositories. This library is both threadsafe and memory safe and allows both reading and writing git repositories. crates.io · docs · repository
Owned on crates.io by rust-lang-owner · alternatives · is it still maintained?
Feature flags + Cargo.toml picker · Security history
Widely used and steady.
git2: 2,047 crates depend on it; no release in the last 90 days, so its count is all steady use.
How this verdict is decided (4 rules)
- Usage: crates.io reverse dependencies (crates that list it as a dependency): 10,000+ = foundational, 1,000+ = widely used, 100+ = established, under 100 = few direct dependents.
- Direction: the median quiet day in the last 30 days of the window against the first 30, read against the median tracked crate (the whole field moved +39% from late summer to October, so a raw trend says nothing). 10%+ ahead of the field = gaining; 10%+ behind = losing ground; otherwise steady. Steady with no release in 2+ years = quiet for years.
- Release spikes: the median release-window day against the quiet-day baseline: under 1.15x = no spike, 1.15x to 1.3x = small bumps, 1.3x or more = jumps on release days.
- Release recency: days since the newest version that was not yanked, from crates.io publish times.
release window (release day + next day)quiet dayquiet-day median · download the 89 days as CSV
The numbers in one paragraphgit2 got 17,292,055 crates.io downloads from Jul 27, 2026 to Oct 23, 2026 with no new version in that window, so every day is a quiet day: a median of 194,840 a day, about 1,363,880 a week. With no release spikes to remove, its whole count is the steady baseline.
What this means if you're choosing a dependency
- Well trodden. 2,047 crates depend on it, so common problems tend to have public answers and breaking changes get noticed fast.
- Released this year. The latest version, 0.21.0, is from May 18, 2026 (5 months ago).
- Still pre-1.0 (0.21.0). Under Cargo's semver rules a 0.x minor bump may break you, so pin the minor version (
git2 = "0.21") and read the changelog on upgrades. - Fit check: license MIT OR Apache-2.0, edition 2021 (from the latest version's manifest).
- Its raw count is a fair read. Under 1% of its downloads in the window came from release windows, so the raw number and the baseline (194,840 a day) tell the same story.
Alternatives that do a similar job
Crates that share its crates.io category or keywords, most similar first. Each line is the crate's own description, then how it compares on the same data.
Its place in the dependency graph
git2 builds on
Tracked crates its latest version (0.21.0) depends on (optional ones marked).
What the chart says
- Weekend quiet days ran at 58% of weekday quiet days (125,968 vs 216,501). A dip that deep is the signature of work-week CI pipelines and developers building on weekdays.
- Biggest day: 347,065 on Oct 22, 2026, a quiet day with no release nearby.
Every number
| All-time downloads | 122,122,629 (rank #824 on crates.io by all-time downloads) |
| Downloads in the window | 17,292,055 (Jul 27, 2026 to Oct 23, 2026, 89 days) |
| Within 2 days of a release | 0 (0.0%) |
| Quiet-day median (baseline) | 194,840 a day; weekdays 216,501, weekends 125,968 |
| Release-adjusted downloads | 17,292,055 (release-window days capped at the baseline) |
| Baseline rank | #966 of the 1000 crates we track |
| Quiet-day trend | +30% raw, -7% against the median tracked crate (+39%) |
| Releases in the window | 0 |
| Versions published, ever | 125 |
| Latest version | 0.21.0, published May 18, 2026 (license MIT OR Apache-2.0, edition 2021) |
| First published | Nov 14, 2014 |
| Reverse dependencies | 2,047 |
How we compute this
crates.io counts every download, including CI runners, mirrors and bots that fetch each new version, so raw counts run high (why, in The Manual). We split the last 89 days into release windows (the day a version of git2 was published, plus the next day) and quiet days, and use the median quiet day as the baseline: an upper bound on steady use, never a head count. The method and data come from our study of 90 days of crates.io data from 69 crates, featured in This Week in Rust #674; check any crate live with the real-downloads checker.
Badge for your README
Maintainers can show the baseline in a README. It is optional, updates when we refresh the data, and links back here. Preview, then copy:
README, light
README, dark
Publishing a crate of your own? How to publish a Rust crate to crates.io, step by step.
Categories
Sources
- Daily downloads: crates.io API, /crates/git2/downloads (last 90 days, all versions), fetched Oct 24, 2026.
- Versions and publish times: crates.io API, /crates/git2/versions, same fetch.
- Reverse dependencies: crates.io reverse dependencies, same fetch. Dependency edges between tracked crates: each crate's default version, crates.io API.
- Fetched politely (one request every 2 seconds, identified User-Agent) per the crates.io data access policy. Data is crates.io's; the release-window split, baseline and verdict rules are ours, CC BY 4.0.
Up next
Next in api bindings: Back to the top in API bindings by real downloads: 4,034,112 a day, 1,539 dependents. Widely used and losing ground.socket2Rust crate. Utilities for handling networking sockets with a maximal amount of configuration possible intended. Real use: 4M downloads a day on quiet days; 1,539 crates...Read it next →Also worth your time