52 releases

new 0.26.2 May 16, 2024
0.25.1 Mar 22, 2024
0.24.3 Sep 9, 2023
0.23.0 Jun 19, 2023
0.1.2 Mar 27, 2020

#256 in Concurrency

Download history 205/week @ 2024-01-24 174/week @ 2024-01-31 209/week @ 2024-02-07 252/week @ 2024-02-14 1027/week @ 2024-02-21 359/week @ 2024-02-28 297/week @ 2024-03-06 326/week @ 2024-03-13 760/week @ 2024-03-20 381/week @ 2024-03-27 284/week @ 2024-04-03 664/week @ 2024-04-10 365/week @ 2024-04-17 253/week @ 2024-04-24 217/week @ 2024-05-01 230/week @ 2024-05-08

1,171 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

~21–34MB
~571K SLoC