https://github.com/xpepermint/async-gitlib
Asynchronous library with libgit2 artifacts.
https://github.com/xpepermint/async-gitlib
async async-std cargo crate git git2 libgit2 rust
Last synced: 11 months ago
JSON representation
Asynchronous library with libgit2 artifacts.
- Host: GitHub
- URL: https://github.com/xpepermint/async-gitlib
- Owner: xpepermint
- License: mit
- Created: 2020-06-18T18:39:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-18T21:05:25.000Z (over 5 years ago)
- Last Synced: 2024-05-01T21:07:23.694Z (almost 2 years ago)
- Topics: async, async-std, cargo, crate, git, git2, libgit2, rust
- Language: Rust
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
> Asynchronous library with libgit2 artifacts.
This package provides asynchronous structures for working with [libgit2](https://libgit2.org) features and uses [async-std](https://github.com/async-rs/async-std) and [git2](https://docs.rs/git2/) under the hood.
**Clone**
```rs
let source = "https://github.com/xpepermint/async-gitlib";
let target = "./target";
let task = RepoClone::default();
task.set_bare(false);
task.set_branch("master");
task.clone(source, target).await?;
```
**Init**
```rs
let target = "./target";
let task = RepoInit::default();
task.set_bare(false);
task.init(target).await?;
```