48 releases

0.24.3 Sep 9, 2023
0.24.1 Aug 30, 2023
0.23.0 Jun 19, 2023
0.22.1 Nov 22, 2022
0.1.2 Mar 27, 2020

#157 in Concurrency

Download history 262/week @ 2023-08-14 315/week @ 2023-08-21 1037/week @ 2023-08-28 749/week @ 2023-09-04 639/week @ 2023-09-11 386/week @ 2023-09-18 291/week @ 2023-09-25 245/week @ 2023-10-02 277/week @ 2023-10-09 257/week @ 2023-10-16 303/week @ 2023-10-23 300/week @ 2023-10-30 302/week @ 2023-11-06 336/week @ 2023-11-13 286/week @ 2023-11-20 273/week @ 2023-11-27

1,232 downloads per month
Used in gitui

MIT license

315KB
11K 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

~15MB
~341K SLoC