51 unstable releases

new 0.26.0 Apr 14, 2024
0.25.1 Mar 22, 2024
0.25.0 Feb 21, 2024
0.24.3 Sep 9, 2023
0.1.2 Mar 27, 2020

#228 in Concurrency

Download history 102/week @ 2023-12-22 145/week @ 2023-12-29 399/week @ 2024-01-05 259/week @ 2024-01-12 349/week @ 2024-01-19 203/week @ 2024-01-26 181/week @ 2024-02-02 217/week @ 2024-02-09 748/week @ 2024-02-16 581/week @ 2024-02-23 345/week @ 2024-03-01 299/week @ 2024-03-08 316/week @ 2024-03-15 799/week @ 2024-03-22 370/week @ 2024-03-29 252/week @ 2024-04-05

1,780 downloads per month
Used in gitui

MIT license

345KB
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–33MB
~566K SLoC