#git

asyncgit

allow using git2 in a asynchronous context

37 releases (17 breaking)

0.18.0 Oct 11, 2021
0.17.0 Aug 22, 2021
0.16.3 Jul 10, 2021
0.13.0 Mar 14, 2021
0.1.2 Mar 27, 2020

#62 in Concurrency

Download history 208/week @ 2021-07-05 303/week @ 2021-07-12 275/week @ 2021-07-19 173/week @ 2021-07-26 199/week @ 2021-08-02 97/week @ 2021-08-09 211/week @ 2021-08-16 432/week @ 2021-08-23 145/week @ 2021-08-30 327/week @ 2021-09-06 274/week @ 2021-09-13 187/week @ 2021-09-20 169/week @ 2021-09-27 196/week @ 2021-10-04 466/week @ 2021-10-11 494/week @ 2021-10-18

952 downloads per month
Used in gitui

MIT license

255KB
9K 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

~14MB
~352K SLoC