53 releases

0.26.3 Jun 2, 2024
0.26.0 Apr 14, 2024
0.25.1 Mar 22, 2024
0.24.3 Sep 9, 2023
0.1.2 Mar 27, 2020

#310 in Concurrency

Download history 305/week @ 2024-07-28 157/week @ 2024-08-04 154/week @ 2024-08-11 201/week @ 2024-08-18 173/week @ 2024-08-25 161/week @ 2024-09-01 190/week @ 2024-09-08 196/week @ 2024-09-15 207/week @ 2024-09-22 175/week @ 2024-09-29 193/week @ 2024-10-06 215/week @ 2024-10-13 204/week @ 2024-10-20 209/week @ 2024-10-27 191/week @ 2024-11-03 120/week @ 2024-11-10

742 downloads per month
Used in gitui

MIT license

350KB
12K SLoC

asyncgit

allow using git2 in an asynchronous context

This crate is designed as part of the gitui project.

asyncgit provides the primary interface to interact with git repositories. It is split into the main module and a sync part. The latter provides convenience wrapper for typical usage patterns against git repositories.

The primary goal however is to allow putting certain (potentially) long running git2 calls onto a thread pool.crossbeam-channel is then used to wait for a notification confirming the result.

In gitui this allows the main-thread and therefore the ui to stay responsive.


lib.rs:

asyncgit

Dependencies

~20–33MB
~526K SLoC